/* ==========================================================================
   BlueStoneDesign — Joomla 6 Template
   Full design system ported from React/Tailwind prototype
   ========================================================================== */
.mod_arsdownloads_item a {
	display: none;
}
.mod_arsdownloads_table {
	margin: 25px 0px;
}

/* CSS Variables (overridden by template parameters via PHP) */
:root {
    --accent: #128CFF;
    --accent-2: #2DD4BF;
    --bg-dark: #0A0E1A;
    --bg-card: #131825;
    --text-primary: #F1F5F9;
    --text-muted: #94A3B8;

    --ink-950: #05070D;
    --ink-900: #0A0E1A;
    --ink-850: #0F1420;
    --ink-800: #131825;
    --ink-700: #1A1F2E;
    --ink-600: #232938;

    --body-font: 'Inter', system-ui, sans-serif;
    --heading-font: 'Space Grotesk', system-ui, sans-serif;
    --body-size: 16px;

    --container-max: 1280px;
    --container-pad: 24px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Browsers give <fieldset>/<legend> a default border/padding — several Joomla
   core view overrides (search form, advanced filters, ...) reuse <fieldset>
   for grouping without opting into any visual style of their own. */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

/* Screen-reader-only utility — used throughout Joomla core view markup
   (labels, legends, skip text) wherever an override reuses core logic. */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: var(--body-font);
    font-size: var(--body-size);
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-2); }

img { max-width: 100%; height: auto; }

ul, ol { padding-left: 1.5rem; }

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.bsd-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.bsd-section { padding-top: 112px; padding-bottom: 112px; position: relative; }
.bsd-section-sm { padding-top: 64px; padding-bottom: 64px; }

.bsd-content-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding-top: 48px;
    padding-bottom: 48px;
}
.bsd-component-area { flex: 1; min-width: 0; }
.bsd-sidebar { width: 320px; flex-shrink: 0; }
@media (max-width: 991px) {
    .bsd-content-layout { flex-direction: column; }
    .bsd-sidebar { width: 100%; }
}

/* ==========================================================================
   Skip Link
   ========================================================================== */
.bsd-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff !important;
    border-radius: 0 0 var(--radius-md) 0;
    font-weight: 600;
}
.bsd-skip-link:focus { top: 0; }

/* ==========================================================================
   Scroll Progress Bar
   ========================================================================== */
.bsd-scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 9999;
    background: linear-gradient(90deg, var(--accent), var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 100ms linear;
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.bsd-preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    transition: opacity 400ms ease, visibility 400ms ease;
}
.bsd-preloader.hidden { opacity: 0; visibility: hidden; }
.bsd-preloader-spinner {
    width: 48px; height: 48px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: bsd-spin 800ms linear infinite;
}
@keyframes bsd-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.bsd-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    transition: top var(--transition);
}
.bsd-header-inner { width: 100%; max-width: 1280px; }

.bsd-top-bar {
    background: rgba(5, 7, 13, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
    color: var(--text-muted);
}
.bsd-top-bar .bsd-container { padding-top: 8px; padding-bottom: 8px; }
.bsd-top-bar a { color: var(--text-muted); }
.bsd-top-bar a:hover { color: var(--accent); }

.bsd-navbar-wrapper {
    margin-top: 20px;
    transition: margin-top var(--transition);
}
.sticky-header .bsd-navbar-wrapper.is-scrolled { margin-top: 10px; }

.bsd-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    background: transparent;
    border: 1px solid transparent;
}
.sticky-header .bsd-navbar.is-scrolled {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(18,140,255,0.03);
}
.header-shrink .bsd-navbar.is-scrolled { padding: 10px 20px; }

.bsd-logo, .bsd-logo-default {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--heading-font);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary) !important;
}
.bsd-logo-default:hover { color: var(--text-primary) !important; }
.bsd-logo-hex {
    width: 36px; height: 36px;
    color: var(--accent);
    position: relative;
}
.bsd-logo-text { line-height: 1; }
.bsd-logo-accent { color: var(--accent); }

.bsd-nav { display: none; }
@media (min-width: 992px) {
    .bsd-nav { display: flex; align-items: center; gap: 4px; }
}

/* Navigation menu items (from mod_menu override) */
.bsd-nav ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 4px; }
.bsd-nav li { position: relative; }
.bsd-nav a, .bsd-nav .nav-text {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: color var(--transition);
    cursor: pointer;
    position: relative;
}
.bsd-nav a:hover, .bsd-nav .nav-text:hover { color: var(--text-primary); }
.bsd-nav li.deeper > a { padding-right: 26px; }
.bsd-nav-chevron {
    position: absolute;
    top: 50%; right: 10px;
    width: 6px; height: 6px;
    margin-top: -4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    color: var(--text-muted);
    opacity: 0.6;
    transform: rotate(45deg);
    pointer-events: none;
}
.bsd-nav li:hover > .bsd-nav-chevron { color: var(--text-primary); }
.bsd-nav a::after, .bsd-nav .nav-text::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 14px; right: 14px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.bsd-nav a:hover::after, .bsd-nav .nav-text:hover::after,
.bsd-nav li.active > a::after { transform: scaleX(1); }
.bsd-nav li.active > a { color: var(--text-primary); }

/* Dropdown */
.bsd-nav ul ul {
    position: absolute;
    top: 100%; left: 0;
    margin-top: 8px;
    min-width: 256px;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 200ms ease;
    flex-direction: column;
}
.bsd-nav li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.bsd-nav ul ul a { padding: 10px 16px; border-radius: var(--radius-md); }
.bsd-nav ul ul a::after { display: none; }

.bsd-header-actions { display: flex; align-items: center; gap: 12px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.bsd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.bsd-btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 30px -6px rgba(18,140,255,0.6);
}
.bsd-btn-primary:hover {
    background: color-mix(in srgb, var(--accent) 85%, #fff);
    color: #fff;
    box-shadow: 0 12px 40px -6px rgba(18,140,255,0.8);
}
.bsd-btn-ghost {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}
.bsd-btn-ghost:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--text-primary);
}
.bsd-btn-sm { padding: 8px 16px; font-size: 14px; }
.bsd-cta-header { display: none; }
@media (min-width: 640px) { .bsd-cta-header { display: inline-flex; } }

/* Button with shine effect */
.bsd-btn-shine { position: relative; overflow: hidden; }
.bsd-btn-shine::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 700ms ease;
}
.bsd-btn-shine:hover::before { transform: translateX(100%); }

/* ==========================================================================
   Mobile Menu Toggle
   ========================================================================== */
.bsd-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    gap: 5px;
    transition: background var(--transition);
}
.bsd-menu-toggle:hover { background: rgba(255,255,255,0.05); }
.bsd-menu-toggle-bar {
    width: 20px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 300ms ease;
}
.bsd-menu-toggle.is-open .bsd-menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bsd-menu-toggle.is-open .bsd-menu-toggle-bar:nth-child(2) { opacity: 0; }
.bsd-menu-toggle.is-open .bsd-menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 992px) { .bsd-menu-toggle { display: none; } }

/* ==========================================================================
   Off-canvas Mobile Menu
   ========================================================================== */
.bsd-offcanvas {
    position: fixed;
    top: 0; right: -100%;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    z-index: 1100;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255,255,255,0.08);
    padding: 80px 24px 24px;
    overflow-y: auto;
    transition: right 350ms cubic-bezier(0.22, 1, 0.36, 1);
}
.bsd-offcanvas.is-open { right: 0; }
.bsd-offcanvas-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 350ms ease;
}
.bsd-offcanvas-overlay.is-open { opacity: 1; visibility: visible; }
.bsd-offcanvas ul { list-style: none; padding: 0; }
.bsd-offcanvas ul ul { padding-left: 16px; }
.bsd-offcanvas li { position: relative; margin-bottom: 4px; }
.bsd-offcanvas li.deeper > a { padding-right: 34px; }
.bsd-offcanvas a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-md);
}
.bsd-offcanvas a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.bsd-offcanvas .bsd-nav-chevron {
    /* Off-canvas stacks children in normal flow (unlike the desktop hover dropdown),
       so the parent <li> grows to wrap its whole submenu — top:50% would center on
       that entire block instead of the parent's own link row, so pin to a fixed
       offset matching that row's height instead. */
    top: 20px;
    right: 16px;
    margin-top: 0;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.bsd-breadcrumb { padding-top: 100px; padding-bottom: 0; }
.bsd-breadcrumb nav { font-size: 13px; color: var(--text-muted); }
.bsd-breadcrumb a { color: var(--text-muted); }
.bsd-breadcrumb a:hover { color: var(--accent); }
.bsd-breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* ==========================================================================
   Page Header (subpages)
   ========================================================================== */
.is-subpage .bsd-main {
    /* Clears the fixed header (top-bar + navbar) on every subpage, regardless of
       which component/override renders inside — not just pages using .bsd-page-header. */
    padding-top: 140px;
}
.bsd-page-header {
    padding-top: 24px;
    padding-bottom: 40px;
    position: relative;
}
.bsd-page-header .bsd-eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}
.bsd-page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.bsd-page-header .bsd-page-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.bsd-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
/* Joomla wraps the hero module's content in its own div (e.g. #mod-custom111,
   class depends on module type). As a flex item that wrapper otherwise shrinks
   to its content width and sits flush left instead of spanning the section. */
.bsd-hero-section > * { width: 100%; }
.bsd-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.bsd-hero-bg canvas { width: 100%; height: 100%; display: block; }
.bsd-hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 40%, transparent 0%, rgba(5,7,13,0.6) 70%, rgba(5,7,13,0.9) 100%);
}
.bsd-hero-aurora-1, .bsd-hero-aurora-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    animation: bsd-drift 20s ease-in-out infinite;
}
.bsd-hero-aurora-1 {
    left: -128px; top: 40px;
    width: 544px; height: 544px;
    background: color-mix(in srgb, var(--accent) 15%, transparent);
}
.bsd-hero-aurora-2 {
    right: -80px; bottom: 80px;
    width: 448px; height: 448px;
    background: color-mix(in srgb, var(--accent-2) 10%, transparent);
    animation-delay: -6s;
}
.bsd-hero-fade {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 192px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}
@keyframes bsd-drift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -20px); }
    66% { transform: translate(-20px, 30px); }
}

.bsd-hero-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 112px 24px 0;
    width: 100%;
}
.bsd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    margin-bottom: 24px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    font-size: 12px;
    font-weight: 500;
    color: color-mix(in srgb, var(--accent) 80%, #fff);
}
.bsd-hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}
.bsd-hero-title .text-gradient {
    background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--accent) 60%, #fff));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}
.bsd-hero-title .text-gradient-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}
.bsd-hero-text {
    font-size: 18px;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 36rem;
    margin-bottom: 40px;
}
.bsd-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.bsd-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: 80px;
    max-width: 640px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 640px) { .bsd-hero-stats { grid-template-columns: repeat(4, 1fr); } }
.bsd-hero-stat {
    padding: 20px;
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(10px);
}
.bsd-hero-stat-num { font-size: 30px; font-weight: 600; color: #fff; }
.bsd-hero-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.bsd-scroll-cue {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
}
.bsd-scroll-cue-icon { animation: bsd-bounce 1.8s ease-in-out infinite; }
@keyframes bsd-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ==========================================================================
   Marquee
   ========================================================================== */
.bsd-marquee-section {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(10, 14, 26, 0.4);
    padding: 20px 0;
}
.bsd-marquee-track {
    display: flex;
    width: max-content;
    gap: 40px;
    animation: bsd-marquee 30s linear infinite;
}
.bsd-marquee-item {
    display: flex;
    align-items: center;
    gap: 40px;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-muted);
}
.bsd-marquee-star { color: var(--accent); }
@keyframes bsd-marquee { to { transform: translateX(-50%); } }

.bsd-marquee-fade-left, .bsd-marquee-fade-right {
    position: absolute;
    top: 0; bottom: 0;
    width: 96px;
    z-index: 1;
    pointer-events: none;
}
.bsd-marquee-fade-left { left: 0; background: linear-gradient(to right, var(--bg-dark), transparent); }
.bsd-marquee-fade-right { right: 0; background: linear-gradient(to left, var(--bg-dark), transparent); }

/* ==========================================================================
   Section Headers
   ========================================================================== */
.bsd-section-header { max-width: 640px; margin-bottom: 64px; }
.bsd-section-header.bsd-wide { max-width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.bsd-eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: block;
    margin-bottom: 16px;
}
.bsd-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.bsd-section-subtitle { font-size: 18px; color: var(--text-muted); line-height: 1.6; }
.text-gradient-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Service Cards
   ========================================================================== */
.bsd-grid { display: grid; gap: 20px; }
.bsd-grid-2 { grid-template-columns: 1fr; }
.bsd-grid-3 { grid-template-columns: 1fr; }
.bsd-grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .bsd-grid-2, .bsd-grid-4 { grid-template-columns: repeat(2, 1fr); } .bsd-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bsd-grid-3 { grid-template-columns: repeat(3, 1fr); } .bsd-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.bsd-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(19, 24, 37, 0.4);
    padding: 24px;
    transition: all var(--transition);
}
.bsd-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 30%, transparent);
    background: rgba(19, 24, 37, 0.7);
}
.bsd-card-glow {
    position: absolute;
    right: -40px; top: -40px;
    width: 128px; height: 128px;
    border-radius: 50%;
    background: var(--accent);
    filter: blur(48px);
    opacity: 0;
    transition: opacity 500ms ease;
}
.bsd-card:hover .bsd-card-glow { opacity: 0.2; }

.bsd-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: color-mix(in srgb, var(--accent) 70%, #fff);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    transition: all var(--transition);
}
.bsd-card:hover .bsd-card-icon {
    background: color-mix(in srgb, var(--accent) 20%, transparent);
    color: color-mix(in srgb, var(--accent) 85%, #fff);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.bsd-card-icon svg { width: 24px; height: 24px; stroke-width: 1.5; }

.bsd-card h3 { font-size: 18px; margin-bottom: 12px; }
.bsd-card p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

.bsd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.bsd-tag {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,0.08);
}
.bsd-tag-accent {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: color-mix(in srgb, var(--accent) 80%, #fff);
    border-color: color-mix(in srgb, var(--accent) 15%, transparent);
}
a.bsd-tag { text-decoration: none; transition: background var(--transition), color var(--transition); }
a.bsd-tag-accent:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); color: #fff; }

/* ==========================================================================
   BSDimmo Showcase (gradient panel)
   ========================================================================== */
.bsd-showcase {
    overflow: hidden;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(19, 24, 37, 0.4);
    backdrop-filter: blur(10px);
}
.bsd-showcase-grid {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .bsd-showcase-grid { grid-template-columns: 1fr 1fr; } }

.bsd-showcase-visual {
    position: relative;
    height: 288px;
    overflow: hidden;
    padding: 32px;
}
@media (min-width: 1024px) { .bsd-showcase-visual { min-height: 448px; height: 100%; } }
.bsd-showcase-visual-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 25%, transparent), var(--ink-800), color-mix(in srgb, var(--accent-2) 15%, transparent));
}
.bsd-showcase-visual-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.3;
}
.bsd-showcase-visual-glow-1, .bsd-showcase-visual-glow-2 {
    position: absolute;
    border-radius: 50%;
    animation: bsd-pulse-glow 4s ease-in-out infinite;
}
.bsd-showcase-visual-glow-1 { right: -40px; top: 25%; width: 256px; height: 256px; background: color-mix(in srgb, var(--accent) 20%, transparent); }
.bsd-showcase-visual-glow-2 { left: -40px; bottom: 25%; width: 192px; height: 192px; background: color-mix(in srgb, var(--accent-2) 15%, transparent); animation-delay: -1.5s; }
@keyframes bsd-pulse-glow { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.bsd-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    font-size: 12px;
    font-weight: 500;
    color: color-mix(in srgb, var(--accent) 80%, #fff);
    backdrop-filter: blur(10px);
}
.bsd-showcase-logo { font-size: 56px; font-weight: 700; color: rgba(255,255,255,0.9); margin-top: 24px; }
@media (min-width: 640px) { .bsd-showcase-logo { font-size: 64px; } }
.bsd-showcase-logo .bsd-accent { color: var(--accent); }
.bsd-showcase-desc { font-size: 14px; color: #cbd5e1; margin-top: 12px; max-width: 320px; }

.bsd-showcase-content { padding: 40px; }
@media (min-width: 1024px) { .bsd-showcase-content { padding: 56px; } }
.bsd-showcase-features { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 640px) { .bsd-showcase-features { grid-template-columns: 1fr 1fr; } }
.bsd-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(5, 7, 13, 0.5);
}
.bsd-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: color-mix(in srgb, var(--accent) 70%, #fff);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    flex-shrink: 0;
}
.bsd-feature-icon svg { width: 18px; height: 18px; stroke-width: 1.5; }
.bsd-feature-label { font-size: 14px; color: #e2e8f0; }

/* ==========================================================================
   Project Cards (with tilt)
   ========================================================================== */
.bsd-project-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(19, 24, 37, 0.5);
    padding: 24px;
    transition: border-color var(--transition);
}
.bsd-project-card:hover { border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.bsd-tilt { transform-style: preserve-3d; transition: transform 200ms ease-out; }
.bsd-tilt-glow {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
}
.bsd-tilt:hover .bsd-tilt-glow { opacity: 1; }

.bsd-project-visual {
    position: relative;
    height: 160px;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: var(--radius-md);
}
.bsd-project-visual-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent-2) 20%, transparent));
}
.bsd-project-visual-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
}
.bsd-project-num {
    position: absolute;
    bottom: 12px; right: 12px;
    font-size: 48px;
    font-weight: 700;
    color: rgba(255,255,255,0.1);
}
.bsd-project-year {
    position: absolute;
    left: 16px; top: 16px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(5, 7, 13, 0.5);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 500;
    color: color-mix(in srgb, var(--accent) 80%, #fff);
}
.bsd-project-cat { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
.bsd-project-title { font-size: 20px; font-weight: 600; margin-top: 6px; }
.bsd-project-desc { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin-top: 12px; }
.bsd-project-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all var(--transition);
}
.bsd-project-card:hover .bsd-project-arrow {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.bsd-project-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

/* ==========================================================================
   Process Timeline
   ========================================================================== */
.bsd-timeline { position: relative; }
.bsd-timeline-line {
    position: absolute;
    left: 0; right: 0; top: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 30%, transparent), transparent);
    display: none;
}
@media (min-width: 1024px) { .bsd-timeline-line { display: block; } }
.bsd-timeline-step { position: relative; }
.bsd-timeline-icon {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px; height: 96px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(10px);
}
.bsd-timeline-icon svg { width: 36px; height: 36px; color: color-mix(in srgb, var(--accent) 70%, #fff); stroke-width: 1.5; }
.bsd-timeline-num {
    position: absolute;
    right: -8px; top: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(18,140,255,0.6);
}
.bsd-timeline-step h3 { font-size: 20px; margin-bottom: 8px; }
.bsd-timeline-step p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* ==========================================================================
   Team Cards
   ========================================================================== */
.bsd-team-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(19, 24, 37, 0.4);
    padding: 24px;
    text-align: center;
    transition: all var(--transition);
}
.bsd-team-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.bsd-team-avatar {
    width: 96px; height: 96px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    transition: transform var(--transition);
}
.bsd-team-card:hover .bsd-team-avatar { transform: scale(1.05); }
.bsd-team-avatar.accent-1 { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.bsd-team-avatar.accent-2 { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent)); }
.bsd-team-avatar.accent-3 { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.bsd-team-avatar.accent-4 { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 80%, #fff)); }
.bsd-team-card h3 { font-size: 18px; }
.bsd-team-role { font-size: 14px; color: color-mix(in srgb, var(--accent) 70%, #fff); margin-top: 4px; }
.bsd-team-socials { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.bsd-team-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all var(--transition);
}
.bsd-team-social:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); color: color-mix(in srgb, var(--accent) 80%, #fff); }
.bsd-team-social svg { width: 16px; height: 16px; }

/* ==========================================================================
   CTA Section (gradient banner)
   ========================================================================== */
.bsd-cta-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, transparent), rgba(19,24,37,0.5), color-mix(in srgb, var(--accent-2) 10%, transparent));
    padding: 40px;
    text-align: center;
}
@media (min-width: 640px) { .bsd-cta-banner { padding: 64px; } }
.bsd-cta-glow-1, .bsd-cta-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}
.bsd-cta-glow-1 { left: -80px; top: -80px; width: 256px; height: 256px; background: color-mix(in srgb, var(--accent) 20%, transparent); }
.bsd-cta-glow-2 { right: -80px; bottom: -80px; width: 256px; height: 256px; background: color-mix(in srgb, var(--accent-2) 15%, transparent); }
.bsd-cta-banner h2 { font-size: clamp(1.875rem, 4vw, 2.5rem); position: relative; }
.bsd-cta-banner p { font-size: 18px; color: #cbd5e1; max-width: 36rem; margin: 20px auto 0; position: relative; }
.bsd-cta-banner .bsd-btn { margin-top: 32px; position: relative; }

/* ==========================================================================
   Footer
   ========================================================================== */
.bsd-footer {
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: var(--ink-950);
    padding: 64px 0;
}
.bsd-footer-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .bsd-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.bsd-footer-col-wide { grid-column: span 1; }
@media (min-width: 768px) { .bsd-footer-col-wide { grid-column: span 2; } }
.bsd-footer-col h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.bsd-footer-col ul { list-style: none; padding: 0; }
.bsd-footer-col li { margin-bottom: 8px; }
.bsd-footer-col a { font-size: 14px; color: var(--text-muted); }
.bsd-footer-col a:hover { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.bsd-footer-desc { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin-top: 16px; max-width: 24rem; }
.bsd-footer-socials { display: flex; gap: 12px; margin-top: 24px; }
.bsd-footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all var(--transition);
}
.bsd-footer-social:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); color: color-mix(in srgb, var(--accent) 80%, #fff); }
.bsd-footer-social svg { width: 20px; height: 20px; }
.bsd-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
    color: var(--text-muted);
}
@media (min-width: 640px) { .bsd-footer-bottom { flex-direction: row; } }

/* ==========================================================================
   Back to Top
   ========================================================================== */
.bsd-back-to-top {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    box-shadow: 0 8px 30px -6px rgba(18,140,255,0.6);
}
.bsd-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.bsd-back-to-top:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); }

/* ==========================================================================
   Reveal Animations
   ========================================================================== */
.has-reveal .bsd-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 700ms cubic-bezier(0.22,1,0.36,1), transform 700ms cubic-bezier(0.22,1,0.36,1);
}
.has-reveal .bsd-reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* ==========================================================================
   Joomla Component Overrides
   ========================================================================== */
.bsd-component-area h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.bsd-component-area h2 { font-size: 1.5rem; margin-top: 32px; margin-bottom: 16px; }
.bsd-component-area p { margin-bottom: 16px; line-height: 1.7; color: #cbd5e1; }
.bsd-component-area ul, .bsd-component-area ol { margin-bottom: 16px; color: #cbd5e1; }
.bsd-component-area img { border-radius: var(--radius-md); margin: 16px 0; }

/* Legacy content tables (e.g. feature/pricing comparison tables pasted into
   the editor with old Bootstrap 3 + Font Awesome 4 classes — those frameworks
   aren't loaded here, so style the table generically and replace the
   fa-check/fa-times glyphs, which don't exist under Font Awesome 6). */
.bsd-component-area table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.bsd-component-area th, .bsd-component-area td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    color: #cbd5e1;
}
.bsd-component-area thead th {
    border-bottom: 2px solid rgba(255,255,255,0.15);
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
}
.bsd-component-area th.caption h3 { margin: 0 0 4px; font-size: 16px; }
.bsd-component-area th.caption p { margin: 0; font-size: 13px; color: var(--text-muted); }
.bsd-component-area th.pthumb, .bsd-component-area td:not(:first-child) { text-align: center; }
.bsd-component-area th.pthumb p { margin: 0; font-weight: 600; }
.bsd-component-area td.info {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bsd-component-area table i.fa-check,
.bsd-component-area table i.fa-times {
    font-style: normal;
    font-family: inherit !important;
}
.bsd-component-area table i.fa-check::before { content: '\2713'; color: color-mix(in srgb, var(--accent-2) 80%, #fff); font-weight: 700; }
.bsd-component-area table i.fa-times::before { content: '\2715'; color: var(--text-muted); opacity: 0.6; }
.bsd-component-area table i small { display: block; font-size: 11px; color: var(--text-muted); font-style: normal; }

/* Legacy icon-box feature grids (old GavickPro template markup pasted into the
   editor: .gkCols6 > .icon.box, Font Awesome 4 icon names with no matching
   glyph loaded here) — restyled to match .bsd-card, generic checkmark badge
   instead of trying to map every old fa-* icon name to a Font Awesome 6 one. */
.bsd-component-area .gkCols6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 24px 0;
}
.bsd-component-area .icon.box {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(19,24,37,0.4);
    transition: all var(--transition);
}
.bsd-component-area .icon.box:hover {
    border-color: color-mix(in srgb, var(--accent) 30%, transparent);
    background: rgba(19,24,37,0.7);
}
.bsd-component-area .icon.box > i.fa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    font-style: normal;
}
.bsd-component-area .icon.box > i.fa::before {
    content: '\2713';
    color: color-mix(in srgb, var(--accent) 80%, #fff);
    font-weight: 700;
    font-size: 18px;
}
.bsd-component-area .icon.box p { margin: 0; color: #cbd5e1; }
.bsd-component-area .icon.box p b { display: block; color: var(--text-primary); margin-bottom: 4px; }

.bsd-component-area .well {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, transparent), rgba(19,24,37,0.5), color-mix(in srgb, var(--accent-2) 10%, transparent));
    padding: 40px;
    text-align: center;
    margin: 24px 0;
}
.bsd-component-area .well h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 12px; }
.bsd-component-area .well p { color: #cbd5e1; max-width: 36rem; margin: 0 auto; }

/* Blog list */
.bsd-blog-list { display: grid; gap: 24px; }
.bsd-blog-item {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(19,24,37,0.4);
    transition: all var(--transition);
}
.bsd-blog-item:hover { border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.bsd-blog-item h2, .bsd-blog-item-title { font-size: 20px; margin: 0 0 4px; }
.bsd-blog-item-title a { color: inherit; }
.bsd-blog-item-title a:hover { color: var(--accent); }
.bsd-blog-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.bsd-blog-intro { font-size: 14px; color: #cbd5e1; line-height: 1.6; }

/* Compact variant when the blog list sits in the narrow sidebar */
.bsd-sidebar .bsd-blog-list { gap: 16px; }
.bsd-sidebar .bsd-blog-item { padding: 16px; }
.bsd-sidebar .bsd-blog-item-title { font-size: 15px; }
.bsd-sidebar .bsd-blog-intro { font-size: 13px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

/* Blog card intro image — always floated right regardless of the article's own
   "Ausrichten" field, so every card in the grid follows the same layout. */
.bsd-blog-card-wrap .item-image {
    height: 250px;
    margin: 0 0 12px 0;
    overflow: hidden;
}
.bsd-blog-card-wrap .item-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-md);
}
.bsd-blog-card-wrap .item-image .caption { display: none; }

/* Smart Search (com_finder) */
.bsd-advanced-search {
    display: none;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    background: rgba(19,24,37,0.4);
}
.bsd-advanced-search.is-open { display: block; }
.bsd-advanced-search-tips { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.bsd-advanced-search select,
.bsd-advanced-search input[type="text"] {
    background: rgba(5,7,13,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 10px;
    font-size: 14px;
    margin: 4px 8px 4px 0;
}
.bsd-advanced-search label { font-size: 13px; color: var(--text-muted); margin-right: 4px; }
#search-result-list .bsd-blog-item .item-image { margin-bottom: 12px; }
#search-result-list .bsd-blog-item .item-image img { max-width: 160px; border-radius: var(--radius-md); display: block; }
#search-result-list mark { background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text-primary); border-radius: 3px; padding: 0 2px; }

/* Pagination (Joomla core markup — no Bootstrap/icon-font loaded, styled directly) */
.pagination__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.pagination__wrapper > div:first-child {
    font-size: 13px;
    color: var(--text-muted);
}
.pagination__wrapper ul.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pagination__wrapper .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(19,24,37,0.4);
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}
.pagination__wrapper a.page-link:hover {
    border-color: color-mix(in srgb, var(--accent) 30%, transparent);
    color: var(--text-primary);
}
.pagination__wrapper .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pagination__wrapper .page-item.disabled .page-link {
    opacity: 0.35;
    cursor: not-allowed;
}
.pagination__wrapper .page-link [class^="icon-angle"] {
    font-style: normal;
}
.pagination__wrapper .page-link .icon-angle-double-left::before { content: '\00ab'; }
.pagination__wrapper .page-link .icon-angle-left::before { content: '\2039'; }
.pagination__wrapper .page-link .icon-angle-right::before { content: '\203a'; }
.pagination__wrapper .page-link .icon-angle-double-right::before { content: '\00bb'; }

/* Forms */
.bsd-form-group { margin-bottom: 20px; }
.bsd-form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--text-primary); }
.bsd-form-input, .bsd-form-textarea, .bsd-form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--text-primary);
    background: rgba(5,7,13,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    transition: border-color var(--transition);
    font-family: var(--body-font);
}
.bsd-form-input:focus, .bsd-form-textarea:focus, .bsd-form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.bsd-form-textarea { min-height: 120px; resize: vertical; }
.bsd-form-required { color: var(--accent); }
.bsd-form-note { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

/* com_contact — real contact form restyled to match mod-custom161 */
.com-contact > h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 20px; }
.bsd-contact-captcha .control-label { display: none; }
.bsd-contact-captcha .controls { margin: 0; }
.bsd-contact-captcha small { color: var(--text-muted); }

/* ==========================================================================
   Phoca Download component (com_phocadownload) — legacy Bootstrap-esque
   markup (row, col, card, btn, modal classes) restyled to match BSD design.
   Scoped to the component's own wrapper classes, not .bsd-component-area,
   since .btn/.row/.card are too generic to risk leaking elsewhere.
   ========================================================================== */

/* Categories overview — card grid */
#phoca-dl-categories-box .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 24px 0 0; }
.pd-categories-view .card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(19,24,37,0.4);
    overflow: hidden;
    transition: all var(--transition);
}
.pd-categories-view .card:hover { border-color: color-mix(in srgb, var(--accent) 30%, transparent); background: rgba(19,24,37,0.7); }
.pd-categories-view .card-img-top { width: 100%; display: block; }
.pd-categories-view .card-body { padding: 24px; flex: 1; }
.pd-categories-view .card-title { margin: 0; font-size: 18px; }
.pd-categories-view .card-title a { color: var(--text-primary); }
.pd-categories-view .card-title a:hover { color: var(--accent); }
.pd-categories-view .list-group { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,0.08); }
.pd-categories-view .list-group-item { padding: 6px 0; font-size: 14px; }
.pd-categories-view .list-group-item a { color: var(--text-muted); }
.pd-categories-view .list-group-item a:hover { color: var(--accent); }
.pd-categories-view .card-footer { padding: 12px 24px; border-top: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); font-size: 12px; color: var(--text-muted); }
.pd-categories-view .card-footer .pd-sep-number { opacity: .5; margin: 0 4px; }

/* Most downloaded files (sidebar block on the categories overview) */
#phoca-dl-most-viewed-box h3 { font-size: 20px; margin: 0 0 16px; }
#phoca-dl-most-viewed-box .pd-filename { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
#phoca-dl-most-viewed-box .pd-filename a { color: var(--text-primary); }
#phoca-dl-most-viewed-box .pd-filename a:hover { color: var(--accent); }
#phoca-dl-most-viewed-box .pd-filename small { color: var(--text-muted); font-size: 12px; }
.pd-cb { border-top: 1px solid rgba(255,255,255,0.08); margin: 32px 0 0; }

/* Single category — subcategory list + file rows */
.pd-category .ph-top { margin-bottom: 20px; }
.pd-category .pd-ctitle { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 8px; }
.pd-category .pd-cdesc { color: var(--text-muted); margin-bottom: 24px; }
.pd-category .pd-subcategory { margin-bottom: 8px; }
.pd-category .pd-subcategory a { color: var(--accent); }
.pd-category .pd-subcategory small { color: var(--text-muted); }
.pd-category .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.pd-category .row.pd-row2-bp { padding: 0; border: none; }
.pd-category .pd-rating:empty,
.pd-category .pd-button-box-bt:empty { display: none; }
.pd-category .row > [class*="col-sm-"]:first-child { flex: 1 1 auto; min-width: 0; }
.pd-category .row > [class*="col-sm-"]:last-child { flex: 0 0 220px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pd-category .pd-title { font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.pd-category .pd-filename { display: flex; align-items: center; gap: 8px; }
.pd-category [class*="pd-document"] { width: 20px; height: 20px; flex-shrink: 0; background-size: contain !important; }
.pd-category .pd-filename a { color: var(--text-muted); font-size: 13px; }
.pd-category .pd-filename a:hover { color: var(--accent); }
.pd-category .pd-button-box-bt { display: inline-flex; }
@media (max-width: 640px) { .pd-category .row > [class*="col-sm-"]:last-child { flex-basis: 100%; justify-content: flex-start; } }
.pd-category .pd-fdesc { color: #cbd5e1; font-size: 14px; margin-bottom: 16px; }

/* Buttons + pagination + the unstyled Bootstrap modal template Phoca ships
   (this site loads no Bootstrap CSS, so .modal has no default display:none) */
.pd-category .btn, .pd-categories-view .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}
.pd-category .btn-primary, .pd-categories-view .btn-primary { background: transparent; border-color: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent); }
.pd-category .btn-primary:hover, .pd-categories-view .btn-primary:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pd-category .btn-success { background: var(--accent); border-color: var(--accent); color: #fff; }
.pd-category .btn-success:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); }
.pd-category .btn-info, .pd-category .btn-warning, .pd-category .btn-danger, .pd-category .btn-secondary {
    background: transparent;
    border-color: rgba(255,255,255,0.15);
    color: var(--text-muted);
}
.pd-category .btn-info:hover, .pd-category .btn-warning:hover, .pd-category .btn-danger:hover { border-color: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text-primary); }
.pd-category .pagination.pagination-centered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin: 24px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    color: var(--text-muted);
}
.pd-category .pagination select {
    background: rgba(5,7,13,0.5);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    margin-left: 4px;
}
.pd-category .pagination .counter { margin-left: auto; }
.pd-category .pagination a { color: var(--accent); }
.pd-category-view .modal, .pd-categories-view .modal { display: none; }

/* Accordion (FAQ) */
.bsd-accordion-item {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    background: rgba(19,24,37,0.4);
    margin-bottom: 12px;
    overflow: hidden;
}
.bsd-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--body-font);
}
.bsd-accordion-header:hover { color: var(--accent); }
.bsd-accordion-icon { transition: transform var(--transition); flex-shrink: 0; }
.bsd-accordion-item.is-open .bsd-accordion-icon { transform: rotate(180deg); }
.bsd-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
}
.bsd-accordion-body-inner { padding: 0 20px 20px; color: var(--text-muted); line-height: 1.6; }

/* Pricing tiles */
.bsd-pricing-tile {
    position: relative;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(19,24,37,0.4);
    transition: all var(--transition);
}
.bsd-pricing-tile:hover { border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.bsd-pricing-tile.featured {
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
    background: color-mix(in srgb, var(--accent) 5%, rgba(19,24,37,0.4));
}
.bsd-pricing-badge {
    position: absolute;
    top: -12px; right: 24px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.bsd-pricing-name { font-size: 18px; font-weight: 600; }
.bsd-pricing-price { font-size: 36px; font-weight: 700; margin: 16px 0; }
.bsd-pricing-price .bsd-pricing-period { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.bsd-pricing-features { list-style: none; padding: 0; margin: 24px 0; }
.bsd-pricing-features li { padding: 8px 0; font-size: 14px; color: #cbd5e1; display: flex; align-items: center; gap: 8px; }
.bsd-pricing-features li::before { content: '\2713'; color: var(--accent); font-weight: 700; }

/* TLD grid */
.bsd-tld-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.bsd-tld-item {
    padding: 16px;
    text-align: center;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(19,24,37,0.4);
    transition: all var(--transition);
}
.bsd-tld-item:hover { border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.bsd-tld-name { font-size: 18px; font-weight: 600; color: var(--accent); }
.bsd-tld-price { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .bsd-section { padding-top: 64px; padding-bottom: 64px; }
    .bsd-hero-content { padding-top: 80px; }
    .is-subpage .bsd-main { padding-top: 110px; }
    .bsd-hero-stats { margin-top: 48px; }
    .bsd-showcase-content { padding: 24px; }
    .bsd-cta-banner { padding: 32px; }
}

@media (max-width: 480px) {
    :root { --container-pad: 16px; }
    .bsd-hero-title { font-size: 2.5rem; }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
    .bsd-header, .bsd-footer, .bsd-scroll-progress, .bsd-back-to-top,
    .bsd-offcanvas, .bsd-offcanvas-overlay, .bsd-menu-toggle { display: none !important; }
    body { background: #fff; color: #000; }
}
