/* Taman Dahab Premium Footer — frontend */
body.tdpf-active #footer.ct-footer {
    display: none !important;
}


/* Taman Dahab Premium Header */
body.tdpf-header-active #header:not(#tdpf-header),
body.tdpf-header-active .ct-header:not(.tdpf-header) {
    display: none !important;
}

/* Remove the theme/browser seam that can appear above the custom header.
   The body reset is scoped to pages where this header is active; the :has() rule
   also clears a root-level top gap on modern browsers without affecting admin-bar pages. */
body.tdpf-header-active {
    margin: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}

/* Some legacy/custom CSS on single posts creates a fixed 4px white strip at the
   very top via .single-post::before. Disable that pseudo-element completely. */
body.single-post::before,
.single-post::before {
    content: none !important;
    display: none !important;
}

@supports selector(html:has(body)) {
    html:has(body.tdpf-header-active:not(.admin-bar)) {
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: 0 !important;
    }
}

body.single-post.tdpf-header-active #main-container,
body.single-post.tdpf-header-active #main,
body.single-post.tdpf-header-active .site-main {
    margin-top: 0 !important;
    border-top: 0 !important;
}

.tdpf-header,
.tdpf-header * {
    box-sizing: border-box;
}

.tdpf-header {
    --tdpf-header-bg: #150e0a;
    position: sticky;
    top: 0;
    z-index: 9998;
    width: 100%;
    isolation: isolate;
    color: #eef3f7;
    background-color: #150e0a;
    background-image: linear-gradient(90deg, #0c0806 0%, #150e0a 20%, #1b110c 50%, #150e0a 80%, #0c0806 100%);
    border-bottom: 1px solid rgba(212,175,55,.32);
    font-family: "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    /* Keep the sticky bar on its own compositor layer so page content can scroll underneath it. */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

body.admin-bar .tdpf-header { top: 32px; }

.tdpf-header::after {
    content: none;
    display: none;
}

.tdpf-header-shell {
    width: min(1380px, calc(100% - 48px));
    min-height: 82px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr) 96px;
    align-items: center;
    gap: 28px;
    position: relative;
}

.tdpf-header-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    text-decoration: none !important;
}

.tdpf-header-brand .tdpf-logo-image {
    width: auto;
    max-width: 190px;
    max-height: 62px;
    object-fit: contain;
    display: block;
}

.tdpf-header-brand .tdpf-logo-text {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.tdpf-header-nav {
    min-width: 0;
}

.tdpf-header-menu,
.tdpf-header-menu ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tdpf-header-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.7vw, 28px);
}

.tdpf-header-menu > li {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

.tdpf-header-menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 82px;
    padding: 0 1px;
    color: #e8edf2 !important;
    text-decoration: none !important;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 750;
    white-space: nowrap;
    transition: color .2s ease;
}

.tdpf-header-menu > li > a::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    transform: translateX(50%);
    border-radius: 999px;
    background: linear-gradient(90deg, #b98725, #f1d77e, #b98725);
    transition: width .23s ease;
}

.tdpf-header-menu > li:hover > a,
.tdpf-header-menu > li.current-menu-item > a,
.tdpf-header-menu > li.current-menu-ancestor > a,
.tdpf-header-menu > li > a:focus-visible {
    color: #f2d585 !important;
}

.tdpf-header-menu > li:hover > a::after,
.tdpf-header-menu > li.current-menu-item > a::after,
.tdpf-header-menu > li.current-menu-ancestor > a::after,
.tdpf-header-menu > li > a:focus-visible::after {
    width: 72%;
}

.tdpf-header-menu .menu-item-has-children > a::before {
    content: "⌄";
    margin-inline-start: 5px;
    color: rgba(242,213,133,.72);
    font-size: 11px;
    transform: translateY(-1px);
}

.tdpf-header-menu .sub-menu {
    position: absolute;
    top: calc(100% - 4px);
    right: 50%;
    min-width: 235px;
    transform: translate(50%, 9px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 10px !important;
    background: linear-gradient(145deg, rgba(10,31,49,.98), rgba(5,17,28,.99));
    border: 1px solid rgba(212,175,55,.22);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(0,0,0,.34);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.tdpf-header-menu li:hover > .sub-menu,
.tdpf-header-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(50%, 0);
}

.tdpf-header-menu .sub-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    color: #dce4eb !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
    transition: background .18s ease, color .18s ease, padding .18s ease;
}

.tdpf-header-menu .sub-menu a:hover,
.tdpf-header-menu .sub-menu .current-menu-item > a {
    color: #f3d889 !important;
    background: rgba(212,175,55,.09);
    padding-inline-start: 16px;
}

.tdpf-header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.tdpf-header-icon {
    width: 42px;
    height: 42px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.075);
    color: #f5f7f8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .12s ease-out, background-color .12s ease-out, color .12s ease-out;
}

.tdpf-header-icon:hover,
.tdpf-header-icon[aria-expanded="true"] {
    color: #f3d889;
    border-color: rgba(212,175,55,.42);
    background: rgba(212,175,55,.10);
}

.tdpf-header-icon svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.tdpf-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.tdpf-menu-toggle span {
    display: block;
    width: 18px;
    height: 1.6px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

.tdpf-header.is-menu-open .tdpf-menu-toggle span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.tdpf-header.is-menu-open .tdpf-menu-toggle span:nth-child(2) { opacity: 0; }
.tdpf-header.is-menu-open .tdpf-menu-toggle span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

.tdpf-search-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 14px 24px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -6px, 0);
    transition: opacity .14s ease-out, transform .14s ease-out, visibility 0s linear .14s;
    contain: layout style;
    background: linear-gradient(90deg, #0c0806 0%, #150e0a 20%, #1b110c 50%, #150e0a 80%, #0c0806 100%);
    border-top: 1px solid rgba(212,175,55,.14);
    border-bottom: 1px solid rgba(212,175,55,.22);
    box-shadow: 0 14px 28px rgba(234, 200, 97, .12);
}

.tdpf-search-panel::before { content: none; display: none; }

.tdpf-header.is-search-open .tdpf-search-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition: opacity .14s ease-out, transform .14s ease-out, visibility 0s;
}

.tdpf-search-form {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    margin-inline: auto;
    min-height: 46px;
    display: flex;
    direction: rtl;
    overflow: hidden;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(234, 200, 97, .20), 0 0 0 1px rgba(212,175,55,.15);
}

.tdpf-search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0 16px;
    border: 0 !important;
    outline: 0;
    box-shadow: none !important;
    background: #fff !important;
    color: #27313b !important;
    font: inherit;
    font-size: 13px;
    text-align: right;
}

.tdpf-search-form button {
    flex: 0 0 92px;
    height: 46px;
    margin: 0;
    padding: 0 15px;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    background: linear-gradient(180deg, #f5d477, #d6a63b);
    color: #3e2b07;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .tdpf-header-shell {
        width: min(100% - 30px, 860px);
        min-height: 72px;
        grid-template-columns: 1fr auto;
        gap: 16px;
    }

    .tdpf-header-brand {
        justify-content: flex-start;
    }

    .tdpf-header-brand .tdpf-logo-image {
        max-width: 175px;
        max-height: 55px;
    }

    .tdpf-menu-toggle { display: inline-flex; }

    .tdpf-header-nav {
        position: absolute;
        top: 66px;
        right: 0;
        left: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        padding: 0 14px;
        background: linear-gradient(180deg, rgba(21,14,10,.99), rgba(12,8,6,.995));
        border: 1px solid transparent;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 22px 44px rgba(0,0,0,.30);
        transition: max-height .32s ease, opacity .2s ease, transform .2s ease, visibility .2s ease, padding .32s ease, border-color .2s ease;
    }

    .tdpf-header.is-menu-open .tdpf-header-nav {
        max-height: min(70vh, 620px);
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        padding: 12px 14px 18px;
        border-color: rgba(212,175,55,.20);
    }

    .tdpf-header-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
    }

    .tdpf-header-menu > li > a {
        min-height: 45px;
        padding: 0 10px;
        border-radius: 9px;
        font-size: 13px;
        white-space: normal;
    }

    .tdpf-header-menu > li > a::after { display: none; }

    .tdpf-header-menu > li:hover > a,
    .tdpf-header-menu > li.current-menu-item > a,
    .tdpf-header-menu > li.current-menu-ancestor > a {
        background: rgba(212,175,55,.08);
    }

    .tdpf-header-menu .sub-menu {
        position: static;
        min-width: 0;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: block;
        margin: 0 12px 6px !important;
        padding: 2px 0 2px 12px !important;
        background: transparent;
        border: 0;
        border-right: 1px solid rgba(212,175,55,.18);
        border-radius: 0;
        box-shadow: none;
    }

    .tdpf-header-menu .sub-menu a {
        padding: 8px 10px;
        font-size: 12px;
        color: #b9c5cf !important;
    }

    .tdpf-search-panel {
        width: 100%;
        padding-inline: 15px;
    }
}

@media (max-width: 782px) {
    body.admin-bar .tdpf-header { top: 46px; }
}

@media (max-width: 600px) {

    .tdpf-header-shell {
        width: calc(100% - 22px);
        min-height: 66px;
    }

    .tdpf-header-brand .tdpf-logo-image {
        max-width: 150px;
        max-height: 50px;
    }

    .tdpf-header-actions { gap: 7px; }
    .tdpf-header-icon { width: 39px; height: 39px; }
    .tdpf-search-panel { width: 100%; padding-inline: 11px; }
    .tdpf-header.is-search-open .tdpf-search-panel { padding-bottom: 14px; }
    .tdpf-search-form button { flex-basis: 78px; }
}


/* Touch devices: keep the same visual identity while removing hover/compositing work. */
@media (hover: none), (pointer: coarse) {
    .tdpf-header-icon,
    .tdpf-header-menu > li > a,
    .tdpf-menu-toggle span,
    .tdpf-search-panel,
    .tdpf-header-nav {
        transition-duration: .08s;
    }

    .tdpf-header-icon:hover {
        transform: none;
    }

    .tdpf-header-menu > li > a::after {
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tdpf-header *,
    .tdpf-header *::before,
    .tdpf-header *::after,
    .tdpf-footer *,
    .tdpf-footer *::before,
    .tdpf-footer *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.tdpf-footer,
.tdpf-footer * {
    box-sizing: border-box;
}

.tdpf-footer {
    --tdpf-accent: #d4af37;
    --tdpf-bg: #150e0a;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 0% 0%, rgba(212,175,55,.18), transparent 17%),
        radial-gradient(circle at 100% 0%, rgba(212,175,55,.14), transparent 17%),
        radial-gradient(circle at 0% 100%, rgba(212,175,55,.10), transparent 18%),
        radial-gradient(circle at 100% 100%, rgba(212,175,55,.15), transparent 18%),
        radial-gradient(circle at 50% -45%, rgba(212, 175, 55, .09), transparent 42%),
        linear-gradient(90deg, #0c0806 0%, #150e0a 16%, #1b110c 50%, #150e0a 84%, #0c0806 100%);
    color: #e7edf3;
    font-family: "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    border-top: 1px solid rgba(212, 175, 55, .34);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

.tdpf-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(90deg, transparent 0, rgba(255,255,255,.012) 50%, transparent 100%),
        linear-gradient(180deg, rgba(255,255,255,.012), transparent 22%, transparent 78%, rgba(255,255,255,.012)),
        radial-gradient(circle at 16% 35%, rgba(255,255,255,.018), transparent 27%),
        radial-gradient(circle at 84% 62%, rgba(212,175,55,.025), transparent 27%);
}

.tdpf-shell {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tdpf-top-grid {
    min-height: 242px;
    display: grid;
    grid-template-columns: 1.14fr 1.48fr .84fr;
    align-items: center;
    gap: 0;
    padding: 36px 30px 30px;
}

.tdpf-newsletter,
.tdpf-brand,
.tdpf-follow {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tdpf-newsletter {
    padding-inline-end: 42px;
    padding-inline-start: 28px;
    text-align: right;
}

.tdpf-brand {
    padding: 0 54px;
    text-align: center;
    position: relative;
}

.tdpf-brand::before,
.tdpf-brand::after {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,.12) 18%, rgba(255,255,255,.12) 82%, transparent);
}

.tdpf-brand::before { right: 0; }
.tdpf-brand::after { left: 0; }

.tdpf-follow {
    padding-inline-start: 42px;
    padding-inline-end: 20px;
    align-items: center;
    text-align: center;
}

.tdpf-footer h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 800;
    letter-spacing: -.25px;
}

.tdpf-newsletter p {
    margin: 0 0 18px;
    color: #aab4bf;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.8;
}

.tdpf-newsletter-form {
    display: flex;
    width: 100%;
    max-width: 390px;
    min-height: 46px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.20), 0 0 0 1px rgba(255,255,255,.12);
    direction: rtl;
}

.tdpf-newsletter-form input[type="email"] {
    min-width: 0;
    flex: 1;
    height: 46px;
    padding: 0 18px;
    margin: 0;
    border: 0 !important;
    outline: 0;
    box-shadow: none !important;
    background: #fff !important;
    color: #5b6470 !important;
    font: inherit;
    font-size: 13px;
    text-align: right;
}

.tdpf-newsletter-form input[type="email"]::placeholder {
    color: #9aa2ab;
    opacity: 1;
}

.tdpf-newsletter-form button {
    flex: 0 0 112px;
    height: 46px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-inline-start: 1px solid rgba(124,89,12,.20);
    border-radius: 0;
    cursor: pointer;
    background: linear-gradient(180deg, #f7d77f 0%, #e1b54a 55%, #c9972e 100%);
    color: #3f2b05;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    text-shadow: 0 1px 0 rgba(255,255,255,.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
    transition: filter .2s ease, transform .2s ease;
}

.tdpf-newsletter-form button:hover { filter: brightness(1.055); }
.tdpf-newsletter-form button:active { transform: translateY(1px); }
.tdpf-newsletter-form button:disabled { opacity: .75; cursor: wait; }

.tdpf-hp {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.tdpf-form-message {
    min-height: 18px;
    margin-top: 8px;
    color: #c7d0d9;
    font-size: 11px;
    font-weight: 600;
}

.tdpf-form-message.is-success { color: #d9bd69; }
.tdpf-form-message.is-error { color: #ff9e9e; }

.tdpf-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 68px;
    margin-bottom: 4px;
}

.tdpf-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 210px;
    text-decoration: none;
}

.tdpf-logo-image {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 78px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.24));
}

.tdpf-logo-fallback {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.05;
}

.tdpf-logo-fallback::before {
    content: "";
    width: 34px;
    height: 38px;
    margin-bottom: 3px;
    border-radius: 55% 45% 60% 40%;
    transform: rotate(18deg);
    background: linear-gradient(135deg, #f3d470, #b9821e 65%, #f2cf5d);
    box-shadow: 0 0 16px rgba(212,175,55,.25);
}

.tdpf-logo-fallback small {
    font-size: 17px;
    color: #eef2f5;
}

.tdpf-tagline {
    max-width: 540px;
    margin: 0 auto 13px;
    color: #9da8b3;
    font-size: 12.5px;
    line-height: 1.7;
    font-weight: 600;
}

.tdpf-main-links,
.tdpf-legal-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tdpf-main-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 24px;
    max-width: 530px;
    margin-inline: auto !important;
}

.tdpf-main-links li,
.tdpf-legal-links li {
    margin: 0 !important;
    padding: 0 !important;
}

.tdpf-main-links a {
    position: relative;
    display: inline-block;
    padding: 3px 0;
    color: #d4dbe2 !important;
    text-decoration: none !important;
    font-size: 12.5px;
    line-height: 1.65;
    font-weight: 700;
    transition: color .2s ease, transform .2s ease;
}

.tdpf-main-links a:hover {
    color: var(--tdpf-accent) !important;
    transform: translateX(-2px);
}

.tdpf-follow h3 {
    margin-bottom: 20px;
}

.tdpf-social-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    direction: ltr;
}

.tdpf-social {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #f3f5f7 !important;
    background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.07));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 8px 18px rgba(0,0,0,.17);
    text-decoration: none !important;
    transition: transform .25s ease, color .25s ease, border-color .25s ease, background .25s ease;
}

.tdpf-social svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.tdpf-social:hover {
    transform: translateY(-3px);
    color: #fff !important;
    border-color: rgba(212,175,55,.38);
    background: linear-gradient(180deg, rgba(212,175,55,.24), rgba(212,175,55,.11));
}

.tdpf-bottom-bar {
    min-height: 63px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 22px;
    border-top: 1px solid rgba(212,175,55,.20);
    padding: 14px 30px;
}

.tdpf-copyright {
    grid-column: 1;
    justify-self: start;
    margin: 0 !important;
    color: #9ca7b3;
    font-size: 11.5px;
    line-height: 1.7;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.tdpf-copyright a {
    color: #f2d585;
    font-weight: 700;
    text-decoration: none;
}

.tdpf-copyright a:hover {
    color: #fff1c8;
}

.tdpf-legal-nav {
    grid-column: 2;
    justify-self: center;
}

.tdpf-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.tdpf-legal-links li {
    display: flex;
    align-items: center;
}

.tdpf-legal-links li + li::before {
    content: "•";
    color: rgba(212,175,55,.55);
    margin: 0 12px;
    font-size: 9px;
}

.tdpf-legal-links a {
    color: #aeb8c2 !important;
    text-decoration: none !important;
    font-size: 11.5px;
    font-weight: 700;
    transition: color .2s ease;
}

.tdpf-legal-links a:hover { color: var(--tdpf-accent) !important; }

/* Golden geometric corner ornaments, matching the supplied reference without external images. */
.tdpf-corner {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    width: 240px;
    height: 170px;
    opacity: .76;
}

.tdpf-corner::before,
.tdpf-corner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 0 36%, rgba(123,82,16,.08) 36% 40%, transparent 40% 44%, rgba(212,175,55,.18) 44% 45%, transparent 45% 50%, rgba(212,175,55,.10) 50% 54%, transparent 54% 58%, rgba(212,175,55,.22) 58% 59%, transparent 59%),
        linear-gradient(135deg, rgba(104,68,14,.55), rgba(212,175,55,.06) 46%, transparent 47%);
    clip-path: polygon(0 0, 100% 0, 27% 100%, 0 100%);
}

.tdpf-corner::after {
    transform: translate(16px, -8px);
    opacity: .55;
}

.tdpf-corner--tr { top: 0; right: 0; transform: scaleX(-1); }
.tdpf-corner--tl { top: 0; left: 0; }
.tdpf-corner--br { bottom: -12px; right: 0; transform: scale(-1); opacity: .58; }
.tdpf-corner--bl { bottom: -12px; left: 0; transform: scaleY(-1); opacity: .18; }

@media (max-width: 1180px) {
    .tdpf-top-grid {
        grid-template-columns: 1fr 1.25fr .72fr;
        padding-inline: 10px;
    }
    .tdpf-brand { padding-inline: 34px; }
    .tdpf-newsletter { padding-inline-end: 30px; }
    .tdpf-follow { padding-inline-start: 28px; }
}

@media (max-width: 900px) {
    .tdpf-shell { width: min(100% - 30px, 760px); }
    .tdpf-top-grid {
        grid-template-columns: 1fr;
        padding: 42px 20px 28px;
    }
    .tdpf-newsletter,
    .tdpf-brand,
    .tdpf-follow {
        min-height: auto;
        padding: 30px 16px;
    }
    .tdpf-brand {
        order: -1;
        border-top: 0;
        border-bottom: 1px solid rgba(255,255,255,.07);
    }
    .tdpf-brand::before,
    .tdpf-brand::after { display: none; }
    .tdpf-newsletter {
        align-items: center;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,.07);
    }
    .tdpf-newsletter-form { max-width: 480px; }
    .tdpf-follow { padding-top: 28px; }
    .tdpf-main-links { max-width: 520px; width: 100%; }
    .tdpf-bottom-bar {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 20px 10px 24px;
        gap: 12px;
    }
    .tdpf-copyright,
    .tdpf-legal-nav {
        grid-column: 1;
        justify-self: center;
    }
    .tdpf-copyright { order: 2; white-space: normal; }
    .tdpf-legal-links {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    .tdpf-legal-links li + li::before { display: none; }
}

@media (max-width: 560px) {
    .tdpf-shell { width: 100%; }
    .tdpf-top-grid { padding: 34px 14px 22px; }
    .tdpf-brand,
    .tdpf-newsletter,
    .tdpf-follow { padding-inline: 8px; }
    .tdpf-logo-image { max-width: 168px; max-height: 70px; }
    .tdpf-tagline { font-size: 11.5px; max-width: 330px; }
    .tdpf-main-links {
        grid-template-columns: 1fr 1fr;
        gap: 4px 14px;
    }
    .tdpf-main-links a { font-size: 11.5px; }
    .tdpf-newsletter h3,
    .tdpf-follow h3 { font-size: 16px; }
    .tdpf-newsletter p { max-width: 340px; font-size: 12px; }
    .tdpf-newsletter-form { min-height: 44px; }
    .tdpf-newsletter-form input[type="email"],
    .tdpf-newsletter-form button { height: 44px; }
    .tdpf-newsletter-form button { flex-basis: 96px; font-size: 13px; }
    .tdpf-social-icons { gap: 12px; }
    .tdpf-social { width: 39px; height: 39px; }
    .tdpf-legal-links li + li::before { margin-inline: 7px; }
    .tdpf-legal-links a,
    .tdpf-copyright { font-size: 10.5px; }
    .tdpf-corner { width: 150px; height: 115px; opacity: .55; }
}


/* v1.1.1 — clean footer edges: gradient only, without side frames/ornamental lines */
.tdpf-footer .tdpf-corner {
    display: none !important;
}

/* Keep the footer visual language aligned with the header: smooth navy/gold gradients only. */
.tdpf-footer {
    background:
        radial-gradient(circle at 0% 0%, rgba(212,175,55,.15), transparent 18%),
        radial-gradient(circle at 100% 0%, rgba(212,175,55,.12), transparent 18%),
        radial-gradient(circle at 0% 100%, rgba(212,175,55,.08), transparent 20%),
        radial-gradient(circle at 100% 100%, rgba(212,175,55,.10), transparent 20%),
        linear-gradient(90deg, #0c0806 0%, #150e0a 20%, #1b110c 50%, #150e0a 80%, #0c0806 100%) !important;
}

.tdpf-footer::before {
    background-image:
        linear-gradient(90deg, transparent, rgba(255,255,255,.018), transparent),
        radial-gradient(circle at 50% 35%, rgba(255,255,255,.018), transparent 38%) !important;
}

/* Custom social icon images use the same footprint as the built-in SVG icons. */
.tdpf-social img {
    width: 19px;
    height: 19px;
    display: block;
    object-fit: contain;
}
