/* =========================================================
   d20-corporate.css â€” VISUAL LAYER
   Exact pixel-perfect match with docentes20.com
   Scoped to .d20-shell--header and .d20-footer ONLY
   UTF-8, no BOM
   ========================================================= */

/* =========================================================
   SCOPED RESET (prevent BS3 leakage)
   ========================================================= */
.d20-shell--header *,
.d20-footer * {
    box-sizing: border-box;
}

.d20-footer ul,
.d20-footer ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.d20-footer img {
    max-width: 100%;
    height: auto;
    border: none;
}

.d20-footer dl,
.d20-footer dt,
.d20-footer dd {
    margin: 0;
    padding: 0;
}

.d20-shell--header ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.d20-shell--header a {
    text-decoration: none;
}

.d20-shell--header *,
.d20-footer * {
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* =========================================================
   HEADER NAVBAR
   ========================================================= */
.d20-shell--header {
    position: relative;
    z-index: 999;
}

.d20-navbar {
    background: rgba(8, 5, 10, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.d20-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 64px;
    flex-wrap: nowrap;
    overflow: visible;
}

/* Logo */
.d20-brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.d20-brand-logo img {
    height: 42px;
    width: auto;
    display: block;
}

/* Nav menu */
.d20-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
}

.d20-nav-menu>li>a {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.d20-nav-menu>li>a:hover,
.d20-nav-menu>li>a:focus,
.d20-nav-menu>li.active>a {
    color: #FFC107;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

/* Dropdown */
.d20-dropdown {
    position: relative;
}

.d20-dropdown-menu {
    display: none;
    position: absolute;
    /* top: 100% with padding-top creates a seamless hover bridge â€” no dead zone */
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(12, 8, 16, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0 0 10px 10px;
    padding: 10px 6px 8px 6px;
    /* extra top padding = hover bridge */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 1004;
}

.d20-dropdown:hover .d20-dropdown-menu,
.d20-dropdown:focus-within .d20-dropdown-menu,
.d20-dropdown.open .d20-dropdown-menu {
    display: block;
}

.d20-dropdown-menu li a {
    display: block;
    padding: 9px 12px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 13px;
    border-radius: 7px;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.d20-dropdown-menu li a:hover {
    background: rgba(255, 193, 7, 0.12);
    color: #FFC107;
}

.d20-caret {
    font-size: 10px;
    opacity: 0.7;
}

/* User actions (search + auth) */
.d20-user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.d20-search-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.d20-search-form input[type="text"] {
    height: 32px;
    padding: 0 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 12px;
    width: 180px;
    outline: none;
    transition: border-color 0.2s;
}

.d20-search-form input[type="text"]:focus {
    border-color: rgba(255, 193, 7, 0.5);
}

.d20-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.d20-search-form button {
    height: 32px;
    padding: 0 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.d20-search-form button:hover {
    background: rgba(255, 193, 7, 0.18);
}

.d20-auth-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.d20-btn-auth {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 999px;
    background: #FFC107;
    color: #101010;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: filter 0.2s;
}

.d20-btn-auth:hover {
    filter: brightness(0.92);
    text-decoration: none;
    color: #101010;
}

.d20-logout {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.d20-logout:hover {
    color: #fff;
}

/* =========================================================
   OJS NATIVE USER MENU (load_menu name="user")
   Styled to match corporate dark navbar.
   The OJS user menu renders:
     username + notification badge â†’ submenu with Dashboard,
     View Profile, Administration, Announcements, Logout.
   ========================================================= */
.d20-user-nav {
    display: flex;
    align-items: center;
}

/* The OJS-generated ul */
.d20-user-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Top-level li (profile item) */
.d20-user-menu>.d20-user-menu-item {
    position: relative;
}

/* Top-level link / username trigger */
.d20-user-menu>.d20-user-menu-item>a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: #FFC107;
    color: #101010;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.2s;
}

.d20-user-menu>.d20-user-menu-item>a:hover {
    filter: brightness(0.90);
    text-decoration: none;
    color: #101010;
}

/* Notification count badge inside the top-level link */
.d20-user-menu>.d20-user-menu-item>a .pkp_notification_alert,
.d20-user-menu>.d20-user-menu-item>a .pkp_notification_count,
.d20-user-menu .notification_count,
.d20-user-menu .pkp_nav_count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
    color: #101010;
    font-size: 11px;
    font-weight: 900;
    padding: 0 5px;
    line-height: 1;
}



/* OJS-generated submenu ul (inside the profile li) */
.d20-user-menu .d20-user-menu-item ul,
.d20-user-menu .d20-user-menu-item>ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 200px;
    background: rgba(12, 8, 16, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0 0 10px 10px;
    padding: 8px 6px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 1005;
    list-style: none;
    margin: 0;
}

.d20-user-menu .d20-user-menu-item:hover>ul,
.d20-user-menu .d20-user-menu-item:focus-within>ul {
    display: block;
}

/* Submenu items */
.d20-user-menu .d20-user-menu-item ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    border-radius: 7px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.d20-user-menu .d20-user-menu-item ul li a:hover {
    background: rgba(255, 193, 7, 0.12);
    color: #FFC107;
    text-decoration: none;
}

/* Notification badge inside the submenu Dashboard link */
.d20-user-menu .d20-user-menu-item ul .notification_count,
.d20-user-menu .d20-user-menu-item ul .pkp_nav_count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 0 5px;
    margin-left: auto;
}

/* Login + Register links (logged-out state â€” OJS renders them too) */
.d20-user-menu>.d20-user-menu-item.login>a {
    background: #FFC107;
    color: #101010;
}

.d20-user-menu>.d20-user-menu-item.register>a {
    background: transparent;
    color: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.d20-user-menu>.d20-user-menu-item.register>a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    filter: none;
}

.d20-register {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.d20-register:hover {
    color: #fff;
}

/* Fallback text when no logo image is set */
.d20-site-name {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.d20-lang-toggle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile toggle */
.d20-mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 7px 9px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
}

.d20-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 2px;
    transition: all 0.25s;
}

/* =========================================================
   HERO (static â€” only on homepage)
   ========================================================= */
.d20-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Background â€” dark maroon/bordeaux matching corporate screenshots */
.d20-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 900px 600px at 30% 40%, rgba(180, 40, 20, 0.55) 0%, transparent 65%),
        radial-gradient(ellipse 700px 500px at 80% 60%, rgba(120, 20, 10, 0.40) 0%, transparent 60%),
        linear-gradient(180deg, #1a0505 0%, #0c0404 100%);
    z-index: 0;
}

/* Purple overlay for Revista branding */
.d20-hero-overlay-purple {
    position: absolute;
    inset: 0;
    background: rgba(50, 20, 60, 0.42);
    z-index: 1;
    pointer-events: none;
}

/* Content layer */
.d20-hero-overlay {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    max-width: 900px;
}

.d20-hero-title {
    color: #fff;
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0 0 16px 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
}

.d20-hero-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.55;
    max-width: 680px;
    margin: 0 auto 24px auto;
}

.d20-hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* CTA Buttons â€” matching corporate: gold filled + pill ghost */
.d20-btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #FFC107;
    background: #FFC107;
    color: #101010;
    transition: filter 0.2s, background 0.2s;
}

.d20-btn-cta:hover {
    filter: brightness(0.92);
    text-decoration: none;
    color: #101010;
}

.d20-btn-cta--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.d20-btn-cta--ghost:hover {
    background: rgba(255, 255, 255, 0.10);
    filter: none;
    color: #fff;
}

/* =========================================================
   FOOTER â€” Exact match to docentes20.com
   ========================================================= */

/* Corporate: background: #080808, border-top: 4px solid #FFC107 */
.d20-footer {
    background: #080808;
    color: #bbb;
    border-top: 4px solid #FFC107;
    padding: 0;
    /* No padding on the footer itself */
    margin: 0;
    margin-top: 40px;
    position: relative;
    font-size: 14px;
    font-family: 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
}

/* Glow effect (corporate: radial gradient, bottom right) */
.d20-footer-glow {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.06) 0%, rgba(106, 16, 0, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.d20-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    /* Vertical + horizontal padding on inner container */
    position: relative;
    z-index: 1;
}

/* Grid: 1.5fr 0.8fr 1fr 0.8fr â€” exact from corporate */
.d20-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr 0.8fr;
    gap: 25px;
    margin-bottom: 0;
    /* No bottom margin — d20-wrap handles spacing */
}

/* Brand col */
.d20-footer .d20-brand {
    margin: 0 0 15px 0;
}

.d20-footer .d20-brand img {
    width: 140px;
    display: block;
    height: auto;
}

.d20-footer .d20-small {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #777;
    max-width: 260px;
    margin-bottom: 20px;
}

/* Column headings â€” exact corporate: uppercase, gold bottom border */
.d20-footer .d20-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
    display: inline-block;
    padding-bottom: 5px;
}

/* Links */
.d20-footer .d20-links li {
    margin-bottom: 8px;
}

.d20-footer .d20-links a {
    color: #999;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s, transform 0.2s;
}

.d20-footer .d20-links a:hover {
    color: #FFC107;
    transform: translateX(3px);
    text-decoration: none;
}

.d20-footer .d20-links a.highlight {
    color: #fff;
    font-weight: 500;
}

/* Social icons â€” exact corporate: circles 34px, hover gold */
.d20-footer .d20-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.d20-footer .d20-social a {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, transform 0.3s;
    border: none;
}

.d20-footer .d20-social a:hover {
    background: #FFC107;
    color: #000;
    transform: translateY(-3px);
    text-decoration: none;
}

.d20-footer .d20-social a svg {
    display: block;
}

/* DOAJ DL block */
.d20-footer .d20-dl {}

.d20-footer .d20-dl dt {
    font-weight: 700;
    color: #fff;
    display: inline;
    font-size: 0.85rem;
}

.d20-footer .d20-dl dd {
    display: inline;
    color: #999;
    font-size: 0.85rem;
    margin: 0;
}

.d20-footer .d20-dl dd::after {
    content: "\A";
    white-space: pre;
}

.d20-footer .d20-dl a {
    color: #999;
    transition: color 0.2s;
}

.d20-footer .d20-dl a:hover {
    color: #FFC107;
}

.d20-footer .d20-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 16px 0;
}

/* PKP badge */
.d20-footer .d20-platform-box {
    margin-top: 8px;
}

.d20-footer .d20-platform-box .d20-small {
    margin-bottom: 8px;
    max-width: none;
}

.d20-footer .d20-platform-box img {
    opacity: 0.7;
    transition: opacity 0.2s;
    max-height: 36px;
    width: auto;
}

.d20-footer .d20-platform-box img:hover {
    opacity: 1;
}

/* Bottom tier — copyright bar: flush full-width, no margin */
.d20-bottom {
    background: #0b0b0b;
    border-top: 1px solid #1a1a1a;
    width: 100%;
    padding: 18px 0;
    /* Vertical padding for internal spacing only */
    margin: 0;
    /* No margin at all */
    color: #666;
    font-size: 12px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.d20-bottom .d20-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
}

.d20-bottomline {
    text-align: center;
    width: 100%;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.d20-strong {
    color: #aaa;
    font-weight: 700;
}

.d20-bottom-sep {
    margin: 0 10px;
    color: #444;
}

/* Back to top — see consolidated block at end of file */

/* =========================================================
   D20 FIX: Lightbox modal (.d20-lightbox convention)
   ========================================================= */
.d20-sidebar-lightbox {
    position: fixed;
    inset: 0;
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.d20-sidebar-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.d20-sidebar-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    cursor: pointer;
}

.d20-sidebar-lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 800px);
    max-height: 88vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.d20-sidebar-lightbox__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.d20-sidebar-lightbox__close:hover {
    background: rgba(0, 0, 0, 0.75);
}

.d20-sidebar-lightbox__figure {
    margin: 0;
    padding: 0;
    text-align: center;
}

.d20-sidebar-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    height: auto;
    object-fit: contain;
    border-radius: 12px 12px 0 0;
}

.d20-sidebar-lightbox__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 14px auto 16px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #FFC107;
    color: #101010 !important;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: filter 0.2s;
}

.d20-sidebar-lightbox__cta:hover {
    filter: brightness(0.92);
    text-decoration: none !important;
    color: #101010 !important;
}

body.d20-lightbox-open {
    overflow: hidden !important;
}

/* =========================================================
   NAVBAR → HERO DIVIDER LINE
   A 4px gold rule — same as corporate site separator.
   ========================================================= */
.d20-shell--header .d20-hero-divider {
    height: 1px;
    background: #FFC107;
    width: 100%;
    position: relative;
    z-index: 3;
}

/* =========================================================
   ANIMATED CHEVRON ARROWS
   .d20-chevron SVG rotates when parent li has .d20-open
   ========================================================= */
.d20-caret {
    display: none;
}

/* hide old text caret — JS replaces it with SVG */

.d20-chevron {
    display: inline-flex;
    align-items: center;
    margin-left: 3px;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.d20-chevron svg {
    display: block;
    flex-shrink: 0;
}

/* Rotate when dropdown is open */
.d20-dropdown.d20-open>a .d20-chevron,
.d20-dropdown:hover>a .d20-chevron,
.d20-dropdown:focus-within>a .d20-chevron {
    transform: rotate(180deg);
}

/* Show dropdown via .d20-open (supplement to :hover) */
.d20-dropdown.d20-open>.d20-dropdown-menu {
    display: block;
}

/* =========================================================
   HERO CAROUSEL (Bootstrap 3 .carousel skin)
   Scoped inside .d20-carousel so we don't bleed into OJS.
   ========================================================= */
.d20-hero .d20-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.d20-hero .d20-carousel-inner {
    height: 100%;
}

/* Each carousel item fills the hero */


.d20-hero .d20-carousel .item.active {
    display: flex;
}

/* Indicators (dots at bottom) */
.d20-hero .d20-indicators {
    bottom: 20px;
    z-index: 4;
}

.d20-hero .d20-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.6);
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.25s;
}

.d20-hero .d20-indicators .active {
    background: #FFC107;
    border-color: #FFC107;
}

/* Prev / Next controls */
.d20-hero .d20-ctrl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Reset BS3 carousel-control gradient */
    filter: none;
    background-image: none;
    opacity: 1;
}

.d20-hero .d20-ctrl:hover {
    background: #FFC107;
    color: #000;
    text-decoration: none;
}

.d20-hero .d20-ctrl--prev {
    left: 20px;
}

.d20-hero .d20-ctrl--next {
    right: 20px;
}

/* Kill BS3 default carousel-control icon backgrounds */
.d20-hero .carousel-control .icon-prev,
.d20-hero .carousel-control .icon-next,
.d20-hero .carousel-control .glyphicon-chevron-left,
.d20-hero .carousel-control .glyphicon-chevron-right {
    display: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {
    .d20-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .d20-search-form input[type="text"] {
        width: 140px;
    }
}

@media (max-width: 768px) {
    .d20-nav-menu {
        display: none;
    }

    .d20-search-form {
        display: none;
    }

    .d20-mobile-toggle {
        display: flex;
    }

    .d20-container {
        gap: 10px;
    }

    /* Mobile nav open state */
    .d20-nav-menu.d20-nav-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(8, 5, 10, 0.98);
        padding: 12px 16px;
        gap: 4px;
        z-index: 1001;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .d20-hero-title {
        color: #fff;
        font-size: 52px;
        font-weight: 900;
        letter-spacing: -0.02em;
        line-height: 1.08;
        margin: 0 0 16px 0;
        font-family: 'Segoe UI', Roboto, sans-serif;
        text-transform: uppercase;
    }

    .d20-grid {
        grid-template-columns: 1fr;
    }

    .d20-footer .d20-brand img,
    .d20-footer .d20-small {
        margin: 0 auto 15px;
    }

    .d20-footer .d20-social {
        justify-content: center;
    }

    .d20-back-top {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 12px auto 0;
    }

    .d20-bottom .d20-wrap {
        flex-direction: column;
    }

    .d20-bottomline {
        padding: 0;
    }

    .d20-bottom-sep {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .d20-hero *,
    .d20-hero-bg,
    .d20-shell--header *,
    .d20-footer * {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
   PATCH v20260226 — username color, dropdown bridge, user
   menu style parity, content padding after hero
   ========================================================= */

/* ---- 1. OVERRIDE OJS DEFAULT BLUE LINK COLOR in user menu ---- */
.d20-user-nav a,
.d20-user-nav a:link,
.d20-user-nav a:visited {
    color: #fff !important;
    text-decoration: none !important;
}

/* Top-level username trigger — gold pill */
.d20-user-menu>.d20-user-menu-item>a,
.d20-user-menu>.d20-user-menu-item>a:link,
.d20-user-menu>.d20-user-menu-item>a:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: transparent !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 0.2s;
}

.d20-user-menu>.d20-user-menu-item>a:hover {
    color: #FFC107 !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

/* ---- 2. DROPDOWN DEAD-ZONE FIX — invisible bridge extends li hitbox ---- */
/* Bridge: the li itself extends below the trigger via padding so
   moving the mouse from trigger into the menu never leaves the li */
.d20-dropdown {
    padding-bottom: 0;
}

/* After the <a>, invisible 12px zone that joins the dropdown */
.d20-nav-menu>li.d20-dropdown>a {
    position: relative;
}

.d20-nav-menu>li.d20-dropdown>a::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 12px;
    background: transparent;
    display: block;
}

/* Dropdown menu: float up by margin to eliminate visual gap */
.d20-dropdown-menu {
    margin-top: -1px !important;
}

/* ---- 3. USER MENU DROPDOWN — same dark style as Acerca de ---- */
/* OJS renders the submenu as a <ul> inside the profile <li>
   Bootstrap 3 theme adds its own styles; override all of them */
.d20-user-menu .d20-user-menu-item ul,
.d20-user-menu .d20-user-menu-item>ul {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    min-width: 200px !important;
    background: rgba(12, 8, 16, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 0 0 10px 10px !important;
    padding: 10px 6px 8px 6px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    z-index: 1003 !important;
    list-style: none !important;
    margin: 0 !important;
}

.d20-user-menu .d20-user-menu-item:hover>ul,
.d20-user-menu .d20-user-menu-item:focus-within>ul {
    display: block !important;
}

/* Submenu link style — mirrors .d20-dropdown-menu li a */
.d20-user-menu .d20-user-menu-item ul li a,
.d20-user-menu .d20-user-menu-item ul li a:link,
.d20-user-menu .d20-user-menu-item ul li a:visited {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 9px 12px !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 7px !important;
    text-decoration: none !important;
    background: transparent !important;
    transition: background 0.15s, color 0.15s !important;
    white-space: nowrap !important;
}

.d20-user-menu .d20-user-menu-item ul li a:hover {
    background: rgba(255, 193, 7, 0.12) !important;
    color: #FFC107 !important;
}

/* Badge (notification count) inside submenu Dashboard link */
.d20-user-menu .d20-user-menu-item ul .pkp_nav_count,
.d20-user-menu .d20-user-menu-item ul .notification_count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    height: 20px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    padding: 0 5px !important;
    margin-left: auto !important;
}

/* Badge next to username (notification alert count) */
.d20-user-menu>.d20-user-menu-item>a .pkp_nav_count,
.d20-user-menu>.d20-user-menu-item>a .notification_count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    height: 20px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    padding: 0 5px !important;
    line-height: 1 !important;
}

/* ---- 4. MAIN CONTENT AREA — padding-top after hero ---- */
/* Adds breathing room between the hero and the first content block. */
.pkp_structure_main {
    padding-top: 32px;
}

/* On homepage the OJS pkp_structure_content sits right after the hero,
   but if there's no hero on inner pages keep minimal top space */
.pkp_page_index .pkp_structure_main {
    padding-top: 32px;
}

.pkp_page_index .pkp_structure_content {
    margin-top: 0;
}

/* =========================================================
   #d20-particles canvas container — sits inside .d20-hero
   Must be absolute, full coverage, z-index between bg and content
   ========================================================= */
#d20-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

#d20-particles canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Make hero-overlay z-index above particles */
.d20-hero-overlay {
    z-index: 3;
}

.d20-hero-bg {
    z-index: 0;
}

.d20-hero-overlay-purple {
    z-index: 1;
}

/* carousel itself must be above particles */
.d20-hero .carousel {
    z-index: 2;
}

.d20-hero .carousel-inner {
    position: relative;
    z-index: 3;
}

.d20-hero .carousel-indicators {
    z-index: 4;
}

.d20-hero .carousel-control {
    z-index: 5;
}

/* =========================================================
   CAROUSEL FIX v20260226-3
   Bootstrap 3 requires .item to be display:none by default.
   Our display:flex was overriding that, showing all slides.
   Fix: only apply flex layout to ACTIVE + TRANSITIONING items.
   ========================================================= */

/* DO NOT set display on .item — let Bootstrap 3 control it */
.d20-hero .d20-carousel .carousel-inner {
    height: 100%;
    overflow: hidden;
}

/* When Bootstrap 3 makes an item active or transitioning, use flex */
.d20-hero .d20-carousel .item.active,
.d20-hero .d20-carousel .item.next,
.d20-hero .d20-carousel .item.prev {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
}

/* Set min-height on ALL items so the track doesn't collapse */
.d20-hero .d20-carousel .item {
    min-height: 400px;
}

/* Premium hero title — clean bold white like corporate */
.d20-hero-title {
    color: #fff;
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0 0 16px 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    text-shadow: none;
}

@media (max-width: 768px) {
    .d20-hero-title {
        font-size: 34px;
    }

    .d20-hero .d20-carousel .item.active,
    .d20-hero .d20-carousel .item.next,
    .d20-hero .d20-carousel .item.prev {
        min-height: 320px;
    }
}

/* =========================================================
   NAVBAR SHRINK-ON-SCROLL — matches corporate site
   State 1 (.d20-navbar default): tall, transparent, at top
   State 2 (.d20-navbar.d20-scrolled): compact, solid, sticky
   ========================================================= */

/* At-top state: taller, transparent background */
.d20-navbar {
    transition: height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    height: 88px;
    background: rgba(15, 8, 20, 0.35) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.0);
    box-shadow: none;
}

/* Nav links, logo inherit fine from transparent bg */

/* Scrolled state: compact, solid */
.d20-navbar.d20-scrolled {
    height: 56px;
    background: rgba(8, 5, 10, 0.97) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

/* Logo shrinks slightly on scroll */
.d20-brand-logo img {
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 48px;
}

.d20-navbar.d20-scrolled .d20-brand-logo img {
    max-height: 36px;
}

/* Nav links vertical center with navbar height */
.d20-nav-menu>li>a {
    transition: color 0.2s;
    display: flex;
    align-items: center;
    height: 88px;
}

.d20-navbar.d20-scrolled .d20-nav-menu>li>a {
    height: 56px;
}

/* =========================================================
   PATCH v20260226-4 — Hero behind fixed nav, divider toggle,
   nav heights, logo size, premium text, particle CSS
   ========================================================= */

/* ---- 1. NAVBAR: FIXED OVER HERO (not sticky in flow) ---- */
.d20-navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
}

/* ---- 2. HERO: COVERS FULL VIEWPORT FROM TOP ---- */
.d20-hero {
    position: relative;
    min-height: 640px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: hidden;
}

/* Hero carousel inner and items fill full height */
.d20-hero .carousel,
.d20-hero .d20-carousel {
    height: 640px !important;
}

.d20-hero .carousel-inner {
    height: 640px !important;
    overflow: hidden;
}

.d20-hero .d20-carousel .item {
    min-height: 640px !important;
    height: 640px !important;
}

.d20-hero .d20-carousel .item.active,
.d20-hero .d20-carousel .item.next,
.d20-hero .d20-carousel .item.prev {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 88px;
    /* clear behind fixed nav */
    padding-bottom: 40px;
}

/* Prevent height-doubling during slide transition:
   .next/.prev items overlay instead of stacking */
.d20-hero .d20-carousel .item.next,
.d20-hero .d20-carousel .item.prev {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ---- 3. DIVIDER: hidden at top, visible on scroll ---- */
.d20-hero-divider {
    opacity: 0 !important;
    transition: opacity 0.3s ease;
}

.d20-hero-divider.d20-divider-visible {
    opacity: 1 !important;
}

/* ---- 4. NAVBAR HEIGHTS — fix overflow issue ---- */
/* At top: taller glass nav */
.d20-navbar {
    height: 88px !important;
}

/* Scrolled: compact but not too thin — was 56px causing overflow */
.d20-navbar.d20-scrolled {
    height: 64px !important;
}

/* Nav links match height */
.d20-nav-menu>li>a {
    height: 88px !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap;
}

.d20-navbar.d20-scrolled .d20-nav-menu>li>a {
    height: 64px !important;
}

/* ---- 5. LOGO SIZE — bigger at top (proportional) ---- */
.d20-brand-logo img {
    max-height: 62px !important;
    width: auto;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.d20-navbar.d20-scrolled .d20-brand-logo img {
    max-height: 40px !important;
}

/* ---- 6. HERO TITLE — kill metallic / gradient text ---- */
.d20-hero-title,
.d20-hero-title * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    text-shadow: none !important;
    font-size: 56px !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.07 !important;
    text-transform: uppercase !important;
    font-family: 'Segoe UI', Roboto, sans-serif !important;
}

.d20-hero-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.85) !important;
    background: none !important;
    text-shadow: none !important;
}

/* ---- 7. Inner page body padding (non-hero pages) ---- */
/* On pages without the hero, content would be hidden behind fixed nav */
.pkp_page_index .pkp_structure_main {
    padding-top: 0;
}

body:not(.pkp_page_index) .pkp_structure_main {
    padding-top: 88px;
}

/* =========================================================
   NAVBAR VERTICAL CENTERING — content always centered
   regardless of height (88px at top, 64px scrolled)
   ========================================================= */
.d20-navbar {
    display: flex !important;
    align-items: center !important;
}

.d20-navbar .d20-container {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 24px;
}

/* Nav links — vertically centered, no fixed height needed */
.d20-nav-menu {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

.d20-nav-menu>li {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* Override the fixed height on links — let flexbox center them */
.d20-nav-menu>li>a,
.d20-navbar.d20-scrolled .d20-nav-menu>li>a {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 14px !important;
}

/* Brand logo container */
.d20-brand-logo {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* User actions on the right */
.d20-user-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

/* =========================================================
   DIVIDER FIX — use navbar ::after so it always sits at the
   exact bottom edge of the fixed bar, appears simultaneously
   with the solid background on scroll. Hide standalone div.
   ========================================================= */

/* Hide the standalone divider element from DOM flow entirely */
.d20-hero-divider {
    display: none !important;
}

/* Gold bottom border wired to the navbar */
.d20-navbar {
    position: relative;
    /* already set, needed for ::after */
}

.d20-navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #FFC107;
    opacity: 0;
    transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 2;
}

.d20-navbar.d20-scrolled::after {
    opacity: 1;
}

/* =========================================================
   LOGO — nearly fills navbar height, minimal padding
   At top (88px bar): logo ~78px, ~4px top+bottom clearance
   Scrolled (64px bar): logo ~56px, ~4px clearance
   ========================================================= */
.d20-brand-logo {
    padding: 4px 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    flex-shrink: 0;
}

.d20-brand-logo img {
    max-height: calc(100% - 8px) !important;
    /* fills bar minus 4px top+bottom */
    height: auto !important;
    width: auto !important;
    display: block;
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

/* Remove any old fixed max-height overrides */
.d20-navbar.d20-scrolled .d20-brand-logo img {
    max-height: calc(100% - 8px) !important;
}

/* =========================================================
   PATCH v20260226-5 — Nav hover area, sidebar padding
   ========================================================= */

/* 1. NAV ITEM HOVER — proportional height, not full bar height */
.d20-nav-menu>li>a,
.d20-navbar.d20-scrolled .d20-nav-menu>li>a {
    height: auto !important;
    padding: 8px 14px !important;
    line-height: 1.4 !important;
    align-self: center !important;
    border-radius: 4px;
}

/* 2. SIDEBAR TOP PADDING — align right block with main column */
.pkp_structure_sidebar {
    padding-top: 48px !important;
}

/* =========================================================
   CAROUSEL ARROWS — match corporate chevron style
   Thin outlined SVG arrow, white semi-transparent
   ========================================================= */

/* Hide Bootstrap 3 default glyphicon */
.d20-hero .carousel-control .glyphicon {
    display: none !important;
}

/* Control buttons — transparent, no background block */
.d20-hero .carousel-control {
    background: transparent !important;
    background-image: none !important;
    width: 48px;
    opacity: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* CSS chevron arrows — border technique, matches corporate thin style */
.d20-hero .carousel-control::after {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    border-right: 2.5px solid rgba(255, 255, 255, 0.75);
    border-top: 2.5px solid rgba(255, 255, 255, 0.75);
    transition: border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

/* Left: rotate chevron 225deg (points left) */
.d20-hero .carousel-control.left::after {
    transform: rotate(225deg) translateX(3px);
}

/* Right: rotate chevron 45deg (points right) */
.d20-hero .carousel-control.right::after {
    transform: rotate(45deg) translateX(-3px);
}

/* Hover: brighter + slight scale */
.d20-hero .carousel-control:hover::after,
.d20-hero .carousel-control:focus::after {
    border-color: rgba(255, 193, 7, 0.9);
}

/* =========================================================
   PATCH v20260226-7 — SVG carousel arrows, nav hover pill,
   kill Bootstrap carousel defaults, particles CSS
   ========================================================= */

/* Remove Bootstrap 3 carousel control backgrounds entirely */
.d20-hero .carousel-control,
.d20-hero .carousel-control.left,
.d20-hero .carousel-control.right {
    background-color: transparent !important;
    background-image: none !important;
    filter: none !important;
    text-shadow: none !important;
    width: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
}

/* Kill any ::after pseudo-element from previous patches */
.d20-hero .carousel-control::after,
.d20-hero .carousel-control.left::after,
.d20-hero .carousel-control.right::after {
    display: none !important;
    content: none !important;
}

/* SVG chevron span */
.d20-ctrl-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.d20-ctrl-icon svg polyline {
    transition: stroke 0.2s;
}

.d20-hero .carousel-control:hover .d20-ctrl-icon svg polyline,
.d20-hero .carousel-control:focus .d20-ctrl-icon svg polyline {
    stroke: #FFC107;
}

/* NAV HOVER — pill shape like corporate, not squircle */
.d20-nav-menu>li>a {
    border-radius: 20px !important;
    padding: 7px 16px !important;
    transition: background 0.2s, color 0.2s;
}

.d20-nav-menu>li>a:hover,
.d20-nav-menu>li:hover>a,
.d20-nav-menu>li.active>a {
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* =========================================================
   PATCH v20260226-8 — carousel glass chevrons, sidebar padding
   ========================================================= */

/* Nuclear override of ALL Bootstrap 3 carousel control styling */
.d20-hero .carousel-control,
.d20-hero .carousel-control.left,
.d20-hero .carousel-control.right,
.d20-hero .d20-ctrl {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    filter: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
    width: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Ensure Bootstrap's :hover/:focus don't re-apply */
.d20-hero .carousel-control:hover,
.d20-hero .carousel-control:focus {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    opacity: 1 !important;
}

/* SVG glass-like thick chevron */
.d20-ctrl-icon svg {
    display: block;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
    transition: filter 0.2s;
}

.d20-hero .carousel-control:hover .d20-ctrl-icon svg {
    filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.7));
}

.d20-ctrl-icon svg polyline {
    transition: stroke 0.2s;
}

.d20-hero .carousel-control:hover .d20-ctrl-icon svg polyline {
    stroke: #FFC107 !important;
}

/* Sidebar padding — 27px as requested */
.pkp_structure_sidebar {
    padding-top: 27px !important;
}

/* =========================================================
   PATCH v20260226-9 — Kill injected Bootstrap3 glyphicons
   inside the hero carousel controls
   ========================================================= */

/* Hard-kill any Bootstrap glyphicon span inside hero controls */
.d20-hero .carousel-control span.glyphicon,
.d20-hero .carousel-control .glyphicon,
.d20-hero .carousel-control .icon-prev,
.d20-hero .carousel-control .icon-next,
.d20-hero .carousel-control span[class*="glyphicon"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* =========================================================
   PATCH v20260226-10 — Footer: IDs table, WhatsApp FAB,
   full-width bottom bar, font sizes, background fix
   ========================================================= */

/* Force footer dark background against any OJS overrides */
.d20-footer {
    background: #0a0009 !important;
    font-size: 15px !important;
    padding: 0 !important;
    /* Padding lives on .d20-wrap, not on footer */
    margin-top: 40px !important;
}

/* Grid: brand col wider to hold IDs table */
.d20-grid {
    grid-template-columns: 1.6fr 1fr 0.9fr 0.8fr !important;
}

/* Academic identifiers table under logo */
.d20-ids {
    margin: 14px 0 18px 0;
    border-collapse: collapse;
    width: 100%;
}

.d20-ids th,
.d20-ids td {
    font-size: 0.82rem;
    padding: 2px 8px 2px 0;
    line-height: 1.4;
    vertical-align: top;
    border: none;
    background: transparent;
    color: inherit;
}

.d20-ids th {
    color: #FFC107;
    font-weight: 600;
    white-space: nowrap;
    text-align: left;
    width: 62px;
}

.d20-ids td {
    color: #999;
}

.d20-ids td a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.d20-ids td a:hover {
    color: #FFC107;
}

/* Social icons — slightly larger, more visible */
.d20-footer .d20-social a {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.d20-footer .d20-social a:hover {
    background: #FFC107 !important;
    border-color: #FFC107 !important;
    color: #000 !important;
}

/* Footer links — larger */
.d20-footer .d20-links a {
    font-size: 0.95rem !important;
}

.d20-footer .d20-dl dt,
.d20-footer .d20-dl dd {
    font-size: 0.88rem !important;
}

/* Bottom bar — full-width, no margin */
.d20-bottom {
    display: block !important;
    padding: 18px 0 !important;
    /* Vertical padding only, no horizontal */
    margin: 0 !important;
    /* Absolutely no margin */
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ===== WhatsApp FAB ===== */
.d20-wa-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s;
}

.d20-wa-fab:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6), 0 3px 12px rgba(0, 0, 0, 0.3);
    color: #fff;
    text-decoration: none;
}

.d20-wa-tooltip {
    position: absolute;
    right: 66px;
    background: rgba(10, 0, 9, 0.88);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.2s, transform 0.2s;
}

.d20-wa-fab:hover .d20-wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================================
   PATCH v20260226-11 — Back-to-Top Button 
   Matches corporate jumping yellow square with chevron
   ========================================================= */

/* Hide any old styles applied to the link */
.d20-back-top {
    position: absolute !important;
    right: 32px !important;
    bottom: 50% !important;
    transform: translateY(50%) !important;
    width: 38px !important;
    height: 38px !important;
    background: #FFC107 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #000 !important;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    z-index: 10 !important;
}

/* Base state for the SVG: draw a line underneath */
.d20-back-top svg {
    display: block;
    width: 22px;
    height: 22px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Custom bottom stroke to match the icon perfectly */
    border-bottom: 2px solid #000;
    padding-bottom: 2px;
    margin-bottom: 2px;
}

.d20-back-top svg polyline {
    stroke: #000;
    stroke-width: 2.5;
}

/* Hover effect: Button scales up slightly, icon jumps up */
.d20-back-top:hover {
    background: #ffca28 !important;
    /* Slightly lighter gold */
    transform: translateY(50%) scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4) !important;
}

.d20-back-top:hover svg {
    /* The jump effect - move the chevron up while keeping the line */
    transform: translateY(-4px);
}

/* =========================================================
   PATCH v20260226-12 — Footer Fixes (Logo, Padding, GoToTop)
   1. Fix padding on pkp_structure_footer wrapper
   2. Absolute position for Back-to-Top button (right edge of d20-bottom)
   3. Update GoToTop shape to match corporate (dark grey rounded rect, single chevron)
   ========================================================= */

/* 1. Remove unwanted padding from the default OJS footer wrapper */
.pkp_structure_footer_wrapper,
.pkp_structure_footer {
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure the footer background stays dark flush against the content */
.pkp_structure_page {
    margin-bottom: 0 !important;
}

/* 2. Fix the Back-to-Top Button position and design */
.d20-bottom {
    position: relative !important;
    /* Critical for absolute positioning of child */
}

/* Reset the button to dark corporate style */
.d20-back-top {
    position: absolute !important;
    right: 24px !important;
    /* Stick to the right edge of the bottom bar */
    bottom: 50% !important;
    transform: translateY(50%) !important;
    width: 32px !important;
    height: 38px !important;
    background: #1a1a1a !important;
    /* Dark grey */
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: none !important;
    z-index: 10 !important;
}

/* Remove the gold bottom border we added earlier */
.d20-back-top svg {
    display: block;
    width: 22px;
    height: 22px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: none !important;
    /* Remove custom stroke */
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.d20-back-top svg polyline {
    stroke: #aaa !important;
    /* Light grey chevron */
    stroke-width: 2.5;
}

/* Hover effect */
.d20-back-top:hover {
    background: #333 !important;
    /* Lighter grey on hover */
    transform: translateY(50%) scale(1.05) !important;
}

.d20-back-top:hover svg polyline {
    stroke: #fff !important;
    /* White chevron on hover */
}

.d20-back-top:hover svg {
    transform: translateY(-3px);
    /* Jump effect */
}

/* =========================================================
   PATCH v20260226-13 — Footer Final Tweaks
   ========================================================= */

/* Generic OJS padding removal so black bar touches bottom */
.pkp_structure_footer_wrapper,
.pkp_structure_footer {
    padding: 0 !important;
    margin: 0 !important;
}

body>.pkp_structure_page {
    margin-bottom: 0 !important;
}

.d20-footer {
    border-bottom: none !important;
    padding: 0 !important;
    /* Structural: padding on .d20-wrap only */
}

/* Bottom bar wrapper and GoToTop alignment */
.d20-bottom {
    background: #0b0b0b !important;
    border-top: 1px solid #1a1a1a !important;
    width: 100% !important;
    padding: 18px 0 !important;
    display: block !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.d20-bottom-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    padding: 0 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Back to top button positioned within the wrap */
.d20-back-top {
    position: absolute !important;
    right: 20px !important;
    /* Rests on the right edge of the 1200px container */
    bottom: 50% !important;
    /* Center vertically relative to .d20-bottom-wrapper */
    transform: translateY(50%) !important;
    width: 38px !important;
    height: 38px !important;
    background: #FFC107 !important;
    /* Yellow */
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #000 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    transition: background 0.2s, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 10 !important;
}

.d20-back-top svg {
    border-bottom: 2px solid #000 !important;
    margin-bottom: 2px !important;
    padding-bottom: 2px !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.d20-back-top svg polyline {
    stroke: #000 !important;
    stroke-width: 2.5 !important;
}

/* Hover jump effect */
.d20-back-top:hover {
    background: #ffca28 !important;
    transform: translateY(50%) scale(1.05) !important;
    color: #000 !important;
}

.d20-back-top:hover svg {
    transform: translateY(-4px) !important;
}

/* Reduce margin in lists for Academia & Recursos */
.d20-footer .d20-links li {
    margin-bottom: 5px !important;
}

/* Spaces */
.d20-dl dt {
    margin-right: 6px !important;
}

.d20-ids th {
    padding-right: 8px !important;
}

/* =========================================================
   PATCH v20260226-15 — Final Feedback Tweaks
   ========================================================= */

/* 1. Copyright bar margin fix */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

.pkp_structure_page,
.pkp_structure_footer_wrapper,
.pkp_structure_footer,
.pkp_structure_main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 2. Social media align left */
.d20-social {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    margin-top: 10px !important;
}

/* 4. Normalize Contacto spacing (match Academia) */
.d20-dl {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 4px 6px !important;
    /* Reduces vertical spacing to 4px */
    margin-bottom: 0 !important;
    line-height: 1.4 !important;
}

.d20-dl dt,
.d20-dl dd {
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
}

/* 7. Go To Top position more to the left (avoid WhatsApp button) */
.d20-back-top {
    right: 130px !important;
}

/* 8. Increase footer font sizes by 1px */
.d20-footer {
    font-size: 14px !important;
    padding: 0 !important;
    /* was 13px */
}

.d20-title {
    font-size: 14px !important;
    /* was 13px */
}

.d20-links a {
    font-size: 15px !important;
    /* was 14px */
}

.d20-dl {
    font-size: 13px !important;
    /* was 12px */
}

.d20-bottomline {
    font-size: 12px !important;
    /* was 11px */
}

.d20-ids th,
.d20-ids td {
    font-size: 11px !important;
    /* was 13px */
}

/* 9. Remove margin bottom from footer links */
.d20-footer .d20-links li {
    margin-bottom: 0px !important;
}

/* =========================================================
   D20 v20260226-ACAD-PREMIUM
   Off-canvas nav + footer responsive hardening
   ========================================================= */

:root {
    --d20-radius: 16px;
    --d20-radius-sm: 12px;
    --d20-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    --d20-border: 1px solid rgba(0, 0, 0, 0.08);
    --d20-surface: #ffffff;
    --d20-bg: #f6f6f8;
    --d20-purple: #3f264d;
    --d20-gold: #c9a227;
}

.d20-nav-panel {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.d20-nav-panel .d20-nav-menu {
    flex: 1 1 auto;
}

.d20-nav-panel .d20-user-actions {
    flex-shrink: 0;
}

.d20-mobile-toggle:focus-visible,
.d20-nav-panel a:focus-visible,
.d20-nav-panel button:focus-visible,
.d20-nav-panel input:focus-visible {
    outline: 2px solid var(--d20-gold);
    outline-offset: 2px;
}

.d20-nav-overlay {
    display: none;
}

@media (max-width: 992px) {

    html,
    body {
        overflow-x: hidden !important;
    }

    body.d20-menu-open {
        overflow: hidden !important;
        height: 100vh !important;
        touch-action: none;
        overscroll-behavior: none;
    }

    .d20-shell--header .d20-navbar {
        z-index: 970 !important;
    }

    .d20-shell--header .d20-navbar .d20-container {
        height: 64px !important;
        min-height: 64px !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        overflow: visible !important;
    }

    .d20-shell--header .d20-mobile-toggle {
        display: inline-flex !important;
        margin-left: auto;
        z-index: 981;
    }

    .d20-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        overflow: hidden;
        border: 0;
        opacity: 0;
        visibility: hidden;
        background: rgba(8, 5, 12, 0.52);
        backdrop-filter: blur(1.5px);
        transition: opacity 0.22s ease, visibility 0.22s ease;
        z-index: 975;
        cursor: pointer;
    }

    body.d20-menu-open .d20-nav-overlay {
        opacity: 1;
        visibility: visible;
    }

    .d20-shell--header .d20-nav-panel {
        position: fixed;
        top: var(--d20-mobile-nav-top, 64px);
        right: 0;
        transform: translateX(100%);
        width: 320px;
        max-width: 86vw;
        height: calc(100vh - var(--d20-mobile-nav-top, 64px));
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 12px 14px 18px;
        background: rgba(21, 10, 26, 0.985);
        border-left: 1px solid rgba(255, 255, 255, 0.10);
        box-shadow: -14px 0 36px rgba(0, 0, 0, 0.34);
        transition: transform 0.26s ease;
        z-index: 980;
    }

    body.d20-menu-open .d20-shell--header .d20-nav-panel,
    .d20-shell--header .d20-nav-panel.is-open {
        transform: translateX(0);
    }

    body:not(.d20-menu-open) #d20-nav-panel,
    body:not(.d20-menu-open) .d20-nav-panel {
        overflow: hidden;
    }

    .d20-shell--header .d20-nav-menu,
    .d20-shell--header .d20-user-actions {
        display: block !important;
        float: none !important;
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .d20-shell--header .d20-nav-menu {
        list-style: none;
        overflow: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100dvh - 230px) !important;
        padding-right: 2px !important;
    }

    .d20-shell--header .d20-nav-menu li {
        width: 100%;
        margin: 0 0 6px !important;
        padding: 0 !important;
        float: none !important;
        display: block !important;
        height: auto !important;
    }

    .d20-shell--header .d20-nav-menu>li>a,
    .d20-shell--header .d20-nav-menu a {
        display: block !important;
        width: 100%;
        padding: 12px 13px !important;
        min-height: 44px;
        border-radius: 12px;
        color: #fff !important;
        line-height: 1.22 !important;
        text-decoration: none !important;
        white-space: normal !important;
    }

    .d20-shell--header .d20-nav-menu>li>a:hover,
    .d20-shell--header .d20-nav-menu>li>a:focus {
        background: rgba(255, 255, 255, 0.08) !important;
    }

    .d20-shell--header .d20-dropdown,
    .d20-shell--header .d20-dropdown-menu {
        position: static !important;
    }

    .d20-shell--header .d20-dropdown-menu {
        display: none;
        width: 100%;
        margin: 4px 0 10px !important;
        padding: 8px !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.10) !important;
        background: rgba(255, 255, 255, 0.06) !important;
    }

    .d20-shell--header .d20-dropdown.is-open>.d20-dropdown-menu,
    .d20-shell--header .d20-dropdown.d20-open>.d20-dropdown-menu {
        display: block !important;
    }

    .d20-shell--header .d20-user-actions {
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
        display: flex !important;
        flex-direction: column;
        gap: 10px;
    }

    .d20-shell--header .d20-search-form,
    .d20-shell--header .d20-search-form input[type="text"] {
        width: 100% !important;
    }

    .d20-shell--header .d20-user-nav,
    .d20-shell--header .d20-lang-toggle {
        width: 100%;
    }

    .d20-shell--header .d20-user-menu,
    .d20-shell--header .d20-user-menu>li {
        width: 100%;
    }

    .d20-shell--header .d20-user-menu>li>a {
        width: 100%;
        border-radius: 10px;
    }
}

/* Footer grid and wrap safety */
.d20-footer,
.d20-bottom {
    overflow: visible;
}

.d20-footer .d20-grid {
    display: grid !important;
    grid-template-columns: 1.45fr 1fr 1fr 1fr !important;
    gap: 28px !important;
    align-items: start;
}

.d20-footer .d20-col,
.d20-footer .d20-col * {
    min-width: 0;
}

.d20-footer a,
.d20-footer dd {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.d20-footer .d20-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.d20-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
}

.d20-bottom .d20-wrap {
    flex-wrap: wrap;
    row-gap: 10px;
}

.d20-wa-fab,
.d20-wa-fab-container {
    z-index: 920 !important;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .d20-footer .d20-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px 22px !important;
    }
}

@media (max-width: 767.98px) {
    .d20-footer {
        margin-top: 32px !important;
        padding: 8px 0 calc(20px + env(safe-area-inset-bottom)) !important;
    }

    .d20-footer .d20-wrap,
    .d20-bottom .d20-wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .d20-footer .d20-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .d20-footer .d20-brand img {
        max-width: min(88vw, 320px) !important;
        min-width: 0 !important;
    }

    .d20-bottom {
        padding: 14px 0 !important;
    }

    .d20-bottom .d20-wrap {
        justify-content: center !important;
        text-align: center;
    }

    .d20-bottom .d20-bottomline {
        width: 100%;
        line-height: 1.45;
        white-space: normal;
    }

    .d20-back-top {
        position: static !important;
        margin: 4px auto 0 !important;
    }

    .d20-wa-fab {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));
        width: 52px;
        height: 52px;
    }

    .d20-wa-tooltip {
        display: none;
    }
}

/* =========================================================
   D20 final stabilization: back-to-top out of flow
   ========================================================= */
.d20-bottom .d20-wrap {
    position: relative;
}

.d20-back-top {
    position: fixed !important;
    top: auto !important;
    right: 98px !important;
    bottom: 22px !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 980 !important;
}

@media (max-width: 767.98px) {
    .d20-back-top {
        right: 18px !important;
        bottom: 86px !important;
    }
}

/* =========================================================
   D20 v20260226-38 - mobile nav + click safety + back-top offsets
   ========================================================= */
.d20-shell--header {
    position: relative;
    z-index: 6000 !important;
}

.d20-nav-menu a {
    color: #fff;
    opacity: 0.92;
}

.d20-nav-menu a:hover,
.d20-nav-menu a:focus {
    color: #c9a227;
    opacity: 1;
}

.d20-hero-bg,
.d20-hero-overlay-purple {
    pointer-events: none;
}

/* Let carousel items pass mouse events through to .d20-hero */
.d20-hero .carousel,
.d20-hero .d20-carousel,
.d20-hero .carousel-inner,
.d20-hero .d20-carousel-inner,
.d20-hero .d20-hero-overlay,
.d20-hero .item {
    pointer-events: none;
}

/* Re-enable pointer events on interactive elements */
.d20-hero .d20-btn-cta,
.d20-hero .carousel-control,
.d20-hero .d20-ctrl,
.d20-hero .carousel-control *,
.d20-hero .d20-indicators,
.d20-hero .d20-indicators li,
.d20-hero .carousel-indicators,
.d20-hero .carousel-indicators li,
.d20-hero a,
.d20-hero button {
    pointer-events: auto;
}

.pkp_structure_content .carousel,
.pkp_structure_content .item.active {
    z-index: 1;
}

body.d20-menu-open {
    overflow: hidden !important;
    height: 100vh;
}

.d20-nav-overlay {
    position: fixed;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

#d20-nav-panel,
.d20-nav-panel {
    overflow-x: hidden;
}

@media (max-width: 1023.98px) {

    .d20-nav-panel,
    #d20-nav-panel {
        position: fixed;
        top: var(--d20-mobile-nav-top, 0px);
        right: 0;
        left: auto;
        width: min(88vw, 360px);
        height: calc(100vh - var(--d20-mobile-nav-top, 0px));
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        transform: translateX(110%);
        pointer-events: none;
    }

    body.d20-menu-open .d20-nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body.d20-menu-open #d20-nav-panel,
    body.d20-menu-open .d20-nav-panel {
        transform: translateX(0);
        pointer-events: auto;
    }
}

.d20-back-top {
    position: fixed !important;
    right: 22px !important;
    bottom: 96px !important;
    z-index: 9000 !important;
}

@media (max-width: 767.98px) {
    .d20-back-top {
        right: 18px !important;
        bottom: 110px !important;
    }
}

@media (max-width: 480px) {
    .d20-back-top {
        bottom: 124px !important;
    }
}

/* =========================================================
   D20 v20260226-39 - footer PKP badge visibility + links size
   ========================================================= */
.d20-footer .d20-platform-box a {
    display: inline-flex;
    align-items: center;
}

.d20-footer .d20-platform-box img {
    display: block !important;
    opacity: 1 !important;
    max-height: 44px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    filter: none !important;
    background: transparent !important;
}

.d20-footer .d20-grid>.d20-col:nth-child(3) .d20-links a,
.d20-footer .d20-grid>.d20-col:nth-child(4) .d20-links a {
    font-size: 1.02rem !important;
    line-height: 1.45;
}

@media (max-width: 767.98px) {

    .d20-footer .d20-grid>.d20-col:nth-child(3) .d20-links a,
    .d20-footer .d20-grid>.d20-col:nth-child(4) .d20-links a {
        font-size: 1.04rem !important;
    }
}

/* =========================================================
   D20 v20260226-40 - header desktop clipping/dropdown stabilization
   ========================================================= */
@media (min-width: 1024px) {

    .d20-shell--header,
    .d20-navbar,
    .d20-container,
    .d20-nav-panel,
    .d20-user-actions {
        overflow: visible !important;
        max-height: none !important;
    }

    .d20-shell--header {
        position: relative;
        z-index: 6000 !important;
    }

    .d20-navbar {
        height: auto !important;
        min-height: 64px !important;
    }

    .d20-navbar .d20-container {
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
        height: auto !important;
        min-height: 64px !important;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .d20-nav-panel {
        flex: 1 1 auto;
        min-width: 0;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .d20-nav-menu {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 18px !important;
        overflow: hidden;
    }

    .d20-nav-menu>li>a {
        white-space: nowrap;
    }

    .d20-user-actions {
        flex: 0 0 auto !important;
        min-width: 340px;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
    }

    .d20-dropdown {
        position: relative;
    }

    .d20-dropdown-menu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: auto;
        min-width: 220px;
        display: none;
        z-index: 10000 !important;
    }

    .d20-dropdown:hover .d20-dropdown-menu,
    .d20-dropdown:focus-within .d20-dropdown-menu {
        display: block;
    }

    .d20-hero-bg,
    .d20-hero-overlay-purple {
        pointer-events: none !important;
    }
}

@media (min-width: 1024px) and (max-width: 1200px) {
    .d20-nav-menu {
        gap: 12px !important;
    }

    .d20-nav-menu>li>a {
        font-size: 14px;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .d20-user-actions {
        min-width: 300px;
        gap: 8px;
    }
}

@media (max-width: 1023.98px) {
    .d20-shell--header .d20-mobile-toggle {
        display: inline-flex !important;
    }

    .d20-shell--header .d20-nav-panel .d20-nav-menu {
        display: block !important;
    }
}

/* =========================================================
   D20 v20260227-01 - premium stability pass
   ========================================================= */
body.d20-premium .d20-shell--header {
    position: relative;
    z-index: 5000 !important;
}

body.d20-premium .d20-navbar,
body.d20-premium .d20-container {
    max-width: 100%;
    overflow: visible !important;
}

body.d20-premium .d20-container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 16px;
    padding-right: 16px;
}

body.d20-premium .d20-nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

body.d20-premium .d20-user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

body.d20-premium .d20-search-form input[type="text"] {
    max-width: 280px;
    width: min(280px, 36vw);
}

body.d20-premium .d20-dropdown {
    position: relative;
}

body.d20-premium .d20-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 9000 !important;
}

body.d20-premium .d20-hero-bg,
body.d20-premium .d20-hero-overlay-purple {
    pointer-events: none !important;
}

body.d20-premium .pkp_structure_content .carousel,
body.d20-premium .pkp_structure_content .carousel .item,
body.d20-premium .pkp_structure_content .carousel-inner {
    z-index: 1 !important;
}

body.d20-premium.d20-menu-open {
    overflow: hidden !important;
    height: 100vh !important;
    overscroll-behavior: none;
}

body.d20-premium .d20-nav-overlay {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

/* =========================================================
   D20 FIX: Back-to-top — consolidated, centered, corporate style
   Overrides all earlier scattered .d20-back-top blocks
   ========================================================= */
.d20-back-top {
    position: fixed !important;
    bottom: 24px !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    background: #1b1b1b !important;
    color: #ccc !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    z-index: 9998 !important;
    transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
}

.d20-back-top:hover {
    background: #FFC107 !important;
    color: #000 !important;
    transform: translateX(-50%) translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.35) !important;
    text-decoration: none !important;
}

.d20-back-top svg {
    display: block;
    width: 20px;
    height: 20px;
}

.d20-back-top:hover svg {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

.d20-back-top svg polyline {
    stroke: #ccc;
    transition: stroke 0.25s;
}

.d20-back-top:hover svg polyline {
    stroke: #000;
}

@media (max-width: 520px) {
    .d20-back-top {
        bottom: 18px !important;
        width: 36px !important;
        height: 36px !important;
    }
}

.d20-footer .d20-back-top {
    margin: 0 !important;
}

/* =========================================================
   D20 v20260227-03 - dropdown always above hero/banner
   ========================================================= */
body.d20-premium .d20-shell--header {
    position: relative !important;
    z-index: 12000 !important;
    isolation: isolate;
}

body.d20-premium .d20-navbar,
body.d20-premium .d20-container,
body.d20-premium .d20-nav-panel,
body.d20-premium .d20-nav-menu,
body.d20-premium .d20-dropdown {
    overflow: visible !important;
}

body.d20-premium .d20-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 2px) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 13000 !important;
}

body.d20-premium .pkp_structure_content .carousel,
body.d20-premium .pkp_structure_content .carousel .item,
body.d20-premium .pkp_structure_content .carousel-inner,
body.d20-premium .d20-hero,
body.d20-premium .d20-carousel {
    position: relative;
    z-index: 1 !important;
}

body.d20-premium .d20-brand-logo img {
    height: 42px !important;
    max-height: 42px !important;
    width: auto !important;
}

@media (min-width: 1024px) {
    body.d20-premium .d20-nav-panel {
        position: static !important;
        width: auto !important;
        height: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
    }
}

@media (max-width: 1023.98px) {

    body.d20-premium #d20-nav-panel,
    body.d20-premium .d20-nav-panel {
        position: fixed;
        top: var(--d20-mobile-nav-top, 0px);
        right: 0;
        width: min(86vw, 360px);
        height: calc(100vh - var(--d20-mobile-nav-top, 0px));
        overflow-y: auto;
        overflow-x: hidden;
    }

    body.d20-premium.d20-nav-open,
    body.d20-premium.d20-menu-open {
        overflow: hidden !important;
        height: 100vh !important;
        overscroll-behavior: none;
    }
}