
@counter-style cpn-persian {
    system: numeric;
    symbols: "۰" "۱" "۲" "۳" "۴" "۵" "۶" "۷" "۸" "۹";
    pad: 2 "۰";
    suffix: "";
}

/* Caspian Web — modern visual system
   Keeps the original brand palette and theme structure while making internal pages
   cleaner, image-led and easier to replace with real project photography later.
*/

:root {
    --cpn-radius-xl: 32px;
    --cpn-radius-lg: 24px;
    --cpn-radius-md: 18px;
    --cpn-line: rgba(51, 0, 102, .10);
    --cpn-soft: #f7f7fb;
    --cpn-shadow: 0 24px 70px rgba(31, 8, 66, .08);
    --cpn-shadow-sm: 0 14px 36px rgba(31, 8, 66, .06);
}

.cpn-modern-page {
    overflow: hidden;
}

.cpn-modern-page section {
    padding-top: 96px;
    padding-bottom: 96px;
}

.cpn-modern-page .theme-title {
    margin-bottom: 38px;
}

.cpn-modern-page .theme-title h2,
.cpn-modern-page .theme-title h1 {
    max-width: 760px;
    margin-bottom: 16px;
}

.cpn-modern-page .theme-title p {
    max-width: 720px;
    line-height: 2;
}

.cpn-hero-minimal {
    padding: 170px 0 90px !important;
    position: relative;
    background: linear-gradient(180deg, #fbfbfe 0%, #fff 100%);
}

.cpn-hero-minimal::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 96, 4, .07);
    inset-inline-end: -180px;
    top: -160px;
    pointer-events: none;
}

.cpn-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--themeht-primary-color);
    font-weight: 700;
    font-size: 14px;
}

.cpn-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: currentColor;
    border-radius: 10px;
}

.cpn-hero-copy h1 {
    font-size: clamp(42px, 5vw, 72px) !important;
    line-height: 1.18 !important;
    max-width: 760px;
    margin-bottom: 22px;
}

.cpn-hero-copy .lead {
    max-width: 680px;
    line-height: 2;
    color: #59535f;
    font-size: 18px;
}

.cpn-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.cpn-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--themeht-text-color);
    font-weight: 700;
    text-decoration: none;
}

.cpn-text-link:hover {
    color: var(--themeht-primary-color);
}

.cpn-photo-frame {
    position: relative;
    border-radius: var(--cpn-radius-xl);
    overflow: hidden;
    background: #eee;
    box-shadow: var(--cpn-shadow);
    min-height: 420px;
}

.cpn-photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.cpn-photo-frame.cpn-photo-wide {
    min-height: 500px;
}

.cpn-photo-frame.cpn-photo-portrait {
    min-height: 580px;
}

.cpn-photo-frame.cpn-photo-soft {
    box-shadow: none;
    border: 1px solid var(--cpn-line);
}

.cpn-photo-caption {
    position: absolute;
    inset-inline-start: 22px;
    bottom: 22px;
    max-width: 290px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.93);
    backdrop-filter: blur(14px);
    color: var(--themeht-text-color);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    font-size: 14px;
    line-height: 1.8;
}

.cpn-card {
    height: 100%;
    padding: 30px;
    border: 1px solid var(--cpn-line);
    border-radius: var(--cpn-radius-lg);
    background: #fff;
    box-shadow: 0 1px 0 rgba(51,0,102,.02);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.cpn-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--cpn-shadow-sm);
    border-color: rgba(51,0,102,.18);
}

.cpn-card h3,
.cpn-card h4 {
    margin: 18px 0 10px;
}

.cpn-card p {
    margin-bottom: 0;
    color: #68616d;
    line-height: 1.9;
}

.cpn-card-link {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
}

.cpn-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(51,0,102,.07);
    color: var(--themeht-text-color);
    font-size: 25px;
    flex: 0 0 auto;
}

.cpn-icon.orange {
    background: rgba(255,96,4,.09);
    color: var(--themeht-primary-color);
}

.cpn-icon.blue {
    background: rgba(16,60,231,.08);
    color: var(--themeht-primary2-color);
}

.cpn-feature-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.cpn-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--cpn-line);
}

.cpn-feature h4,
.cpn-feature h5 {
    margin: 2px 0 7px;
}

.cpn-feature p {
    margin: 0;
    font-size: 15px;
    line-height: 1.85;
}

.cpn-stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    border: 1px solid var(--cpn-line);
    border-radius: var(--cpn-radius-lg);
    overflow: hidden;
    background: #fff;
}

.cpn-stat {
    padding: 24px;
    text-align: center;
    border-inline-start: 1px solid var(--cpn-line);
}

.cpn-stat:first-child {
    border-inline-start: 0;
}

.cpn-stat strong {
    display: block;
    color: var(--themeht-text-color);
    font-size: 22px;
    margin-bottom: 4px;
}

.cpn-stat span {
    color: #767079;
    font-size: 14px;
}

.cpn-numbered-list {
    counter-reset: cpnstep;
    display: grid;
    gap: 0;
}

.cpn-numbered-item {
    counter-increment: cpnstep;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 18px;
    padding: 25px 0;
    border-bottom: 1px solid var(--cpn-line);
}

.cpn-numbered-item::before {
    content: counter(cpnstep, cpn-persian);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--themeht-text-color);
    color: #fff;
    font-family: "IRANSans", sans-serif;
    font-weight: 700;
}

.cpn-numbered-item h4 {
    margin: 0 0 7px;
}

.cpn-numbered-item p {
    margin: 0;
    line-height: 1.85;
}

.cpn-visual-panel {
    padding: 34px;
    border-radius: var(--cpn-radius-xl);
    background: var(--themeht-text-color);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cpn-visual-panel h2,
.cpn-visual-panel h3,
.cpn-visual-panel p {
    color: #fff;
}

.cpn-visual-panel::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    inset-inline-end: -90px;
    bottom: -100px;
    background: rgba(255,96,4,.24);
}

.cpn-cta-minimal {
    border: 1px solid rgba(51,0,102,.11);
    border-radius: var(--cpn-radius-xl);
    background: #fff;
    box-shadow: var(--cpn-shadow-sm);
    padding: 42px 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cpn-cta-minimal h3 {
    margin-bottom: 8px;
}

.cpn-cta-minimal p {
    margin: 0;
}

.cpn-mosaic {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    grid-template-rows: 220px 220px;
    gap: 16px;
}

.cpn-mosaic .cpn-photo-frame {
    min-height: 0;
    height: 100%;
    border-radius: 22px;
}

.cpn-mosaic .cpn-photo-frame:first-child {
    grid-row: 1 / 3;
}

.cpn-ui-shot {
    border-radius: 24px;
    border: 1px solid var(--cpn-line);
    background: #fff;
    padding: 12px;
    box-shadow: var(--cpn-shadow-sm);
}

.cpn-ui-shot img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.cpn-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cpn-pill {
    padding: 9px 14px;
    background: #f6f4fa;
    border: 1px solid rgba(51,0,102,.08);
    border-radius: 999px;
    color: var(--themeht-text-color);
    font-size: 14px;
    font-weight: 600;
}

/* The footer is always the same shared footer as the homepage. */
footer.footer {
    margin-bottom: 0 !important;
    isolation: isolate;
}

footer.footer .dark-bg.ht-bg-move {
    transform-origin: center center;
    will-change: transform, border-radius;
}

footer.footer .primary-footer,
footer.footer .secondary-footer {
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    .cpn-modern-page section { padding-top: 76px; padding-bottom: 76px; }
    .cpn-hero-minimal { padding: 140px 0 70px !important; }
    .cpn-photo-frame,
    .cpn-photo-frame.cpn-photo-wide,
    .cpn-photo-frame.cpn-photo-portrait { min-height: 400px; }
    .cpn-stat-strip { grid-template-columns: repeat(2, 1fr); }
    .cpn-stat:nth-child(3) { border-inline-start: 0; border-top: 1px solid var(--cpn-line); }
    .cpn-stat:nth-child(4) { border-top: 1px solid var(--cpn-line); }
    .cpn-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 320px 190px; }
    .cpn-mosaic .cpn-photo-frame:first-child { grid-column: 1 / 3; grid-row: auto; }
}

@media (max-width: 767px) {
    .cpn-modern-page section { padding-top: 60px; padding-bottom: 60px; }
    .cpn-hero-minimal { padding: 120px 0 58px !important; }
    .cpn-hero-copy h1 { font-size: 38px !important; }
    .cpn-hero-copy .lead { font-size: 16px; }
    .cpn-photo-frame,
    .cpn-photo-frame.cpn-photo-wide,
    .cpn-photo-frame.cpn-photo-portrait { min-height: 320px; border-radius: 24px; }
    .cpn-photo-caption { inset-inline: 14px; bottom: 14px; max-width: none; }
    .cpn-feature-row { grid-template-columns: 1fr; }
    .cpn-stat-strip { grid-template-columns: 1fr; }
    .cpn-stat { border-inline-start: 0 !important; border-top: 1px solid var(--cpn-line); }
    .cpn-stat:first-child { border-top: 0; }
    .cpn-cta-minimal { padding: 30px 24px; align-items: flex-start; flex-direction: column; }
    .cpn-mosaic { display: grid; grid-template-columns: 1fr; grid-template-rows: none; }
    .cpn-mosaic .cpn-photo-frame:first-child { grid-column: auto; }
    .cpn-mosaic .cpn-photo-frame { min-height: 240px; }
}


/* =========================================================
   Caspian Web — Footer information architecture refresh
   Brand → collapsible contact → About → Products → Services
   ========================================================= */
.cpn-footer-primary .cpn-footer-heading,
.cpn-footer-primary .cpn-footer-contact-box .cpn-footer-heading {
    font-family: var(--themeht-secondary-font-family) !important;
    font-weight: 800 !important;
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: -.2px;
    color: var(--themeht-primary-color);
    margin-bottom: 24px;
}

.cpn-footer-primary .footer-logo img {
    max-width: 220px;
    height: auto;
}

.cpn-footer-intro {
    max-width: 560px;
    font-family: "IRANSans", sans-serif;
    font-size: 15px;
    line-height: 2.05;
    color: rgba(255, 255, 255, .88);
}

.cpn-footer-menu-col ul li + li {
    margin-top: 12px;
}

.cpn-footer-menu-col ul li a {
    display: inline-block;
    line-height: 1.75;
}

.cpn-footer-contact-toggle {
    width: 100%;
    max-width: 560px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-family: var(--themeht-secondary-font-family) !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.cpn-footer-contact-toggle:hover {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .34);
}

.cpn-footer-contact-toggle i {
    font-size: 15px;
    transition: transform .25s ease;
}

.cpn-footer-contact-toggle:not(.collapsed) i {
    transform: rotate(180deg);
}

.cpn-footer-contact-box {
    max-width: 560px;
    margin-top: 14px;
    padding: 22px 20px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .055);
}

.cpn-footer-contact-box .cpn-footer-heading {
    margin-bottom: 18px;
}

.cpn-footer-contact-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.cpn-footer-contact-list li + li {
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.cpn-footer-contact-list li > i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: var(--themeht-primary-color);
    font-size: 16px;
}

.cpn-footer-contact-list strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.cpn-footer-contact-list p,
.cpn-footer-contact-list a {
    color: rgba(255, 255, 255, .80);
    font-size: 14px;
    line-height: 1.8;
}

.cpn-footer-contact-list a:hover {
    color: #fff;
}

@media (max-width: 991px) {
    .cpn-footer-primary .cpn-footer-heading {
        margin-bottom: 18px;
    }

    .cpn-footer-brand-col {
        margin-bottom: 10px;
    }
}

@media (max-width: 767px) {
    .cpn-footer-primary .row {
        --bs-gutter-y: 2.25rem;
    }

    .cpn-footer-primary .footer-logo img {
        max-width: 190px;
    }

    .cpn-footer-intro,
    .cpn-footer-contact-toggle,
    .cpn-footer-contact-box {
        max-width: none;
    }

    .cpn-footer-menu-col {
        margin-top: 0 !important;
    }
}


/* =========================================================
   Caspian Web — Footer V2
   Full-width contact + professional trust / membership area
   ========================================================= */
.cpn-footer-primary {
    padding-top: 86px;
    padding-bottom: 54px;
}

.cpn-footer-brand-block {
    max-width: 760px;
    margin-inline-start: auto;
}

.cpn-footer-primary .footer-logo img {
    max-width: 225px;
    height: auto;
}

.cpn-footer-intro {
    max-width: 720px;
    font-family: "IRANSans", sans-serif;
    font-size: 15px;
    line-height: 2.05;
    color: rgba(255,255,255,.86);
}

.cpn-footer-contact-toggle {
    width: min(100%, 720px);
    max-width: none;
    margin-top: 25px;
    padding: 14px 18px;
    border-radius: 14px;
}

.cpn-footer-contact-collapse {
    width: 100%;
}

.cpn-footer-contact-wide {
    width: 100%;
    margin-top: 20px;
    padding: 26px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    background: rgba(255,255,255,.055);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cpn-footer-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.cpn-footer-section-heading p {
    font-family: "IRANSans", sans-serif;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,.62);
}

.cpn-footer-contact-card {
    display: grid;
    grid-template-columns: 44px minmax(0,1fr);
    gap: 14px;
    align-items: start;
    min-height: 122px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.045);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.cpn-footer-contact-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.075);
    border-color: rgba(255,255,255,.18);
}

.cpn-footer-contact-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(255,96,4,.12);
    color: var(--themeht-primary-color);
    font-size: 19px;
}

.cpn-footer-contact-card strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-family: var(--themeht-secondary-font-family) !important;
    font-size: 14px;
    font-weight: 800;
}

.cpn-footer-contact-card p,
.cpn-footer-contact-card a {
    margin: 0;
    color: rgba(255,255,255,.76);
    font-family: "IRANSans", sans-serif;
    font-size: 13px;
    line-height: 1.9;
}

.cpn-footer-contact-card a:hover { color: #fff; }

.cpn-footer-links-row {
    margin-top: 48px;
    padding-top: 38px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.cpn-footer-primary .cpn-footer-heading {
    font-family: var(--themeht-secondary-font-family) !important;
    font-weight: 800 !important;
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: -.2px;
    color: var(--themeht-primary-color);
}

.cpn-footer-menu-col ul li + li { margin-top: 11px; }
.cpn-footer-menu-col ul li a {
    font-family: "IRANSans", sans-serif;
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255,255,255,.82);
}
.cpn-footer-menu-col ul li a:hover { color: #fff; }

.cpn-footer-proof-section {
    margin-top: 44px;
    padding-top: 38px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.cpn-footer-proof-head {
    margin-bottom: 22px;
}

.cpn-footer-proof-head > span {
    display: inline-block;
    margin-bottom: 7px;
    color: rgba(255,255,255,.58);
    font-family: "IRANSans", sans-serif;
    font-size: 12px;
}

.cpn-footer-proof-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 285px;
    padding: 22px 18px 18px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 20px;
    background: rgba(255,255,255,.045);
    transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.cpn-footer-proof-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.07);
}

.cpn-footer-proof-card h6 {
    min-height: 48px;
    margin: 0 0 15px;
    color: #fff;
    font-family: var(--themeht-secondary-font-family) !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.75;
}

.cpn-footer-proof-card p {
    margin-top: 10px;
    color: rgba(255,255,255,.62);
    font-family: "IRANSans", sans-serif;
    font-size: 12px;
}

.cpn-footer-proof-media {
    width: 120px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    overflow: hidden;
}

.cpn-footer-proof-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cpn-footer-proof-media-enamad {
    width: 120px;
    height: 180px;
}

.cpn-footer-proof-media-enamad a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpn-footer-proof-media-enamad img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Keep the original ThemeHt GSAP footer animation active on all desktop pages. */
@media (min-width: 992px) {
    footer.footer .dark-bg.ht-bg-move {
        transform-origin: center center;
        will-change: transform, border-radius;
    }
}

@media (max-width: 991px) {
    .cpn-footer-primary { padding-top: 70px; }
    .cpn-footer-brand-block { max-width: none; }
    .cpn-footer-contact-toggle { width: 100%; }
    .cpn-footer-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .cpn-footer-proof-card { min-height: 270px; }
}

@media (max-width: 767px) {
    .cpn-footer-primary { padding-top: 58px; padding-bottom: 40px; }
    .cpn-footer-primary .footer-logo img { max-width: 190px; }
    .cpn-footer-contact-wide { padding: 18px; border-radius: 16px; }
    .cpn-footer-contact-card { min-height: auto; }
    .cpn-footer-links-row { margin-top: 36px; padding-top: 30px; }
    .cpn-footer-proof-section { margin-top: 34px; padding-top: 30px; }
    .cpn-footer-proof-card { min-height: 250px; }
    .cpn-footer-proof-media { width: 110px; height: 165px; }
}

/* =========================================================
   Footer V3 — 4-column layout + full-width contact reveal
   compact trust / membership cards
   ========================================================= */
.cpn-footer-main-row {
    position: relative;
}

.cpn-footer-brand-col .cpn-footer-intro {
    max-width: 100%;
}

.cpn-footer-brand-col .cpn-footer-contact-toggle {
    width: 100%;
    max-width: 360px;
    margin-top: 22px;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 12px;
}

.cpn-footer-contact-collapse {
    width: 100%;
}

.cpn-footer-contact-wide {
    margin-top: 26px;
    padding: 22px;
}

.cpn-footer-contact-card {
    min-height: 112px;
    padding: 16px;
}

.cpn-footer-sales-contact {
    min-width: 0;
}

.cpn-footer-phone-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    color: rgba(255,255,255,.72);
    font-family: "IRANSans", sans-serif;
    font-size: 12px;
    line-height: 1.8;
}

.cpn-footer-phone-line > span:first-child {
    flex: 0 0 auto;
    color: rgba(255,255,255,.64);
}

.cpn-footer-phone-links {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.cpn-footer-phone-links a,
.cpn-footer-whatsapp {
    color: #fff !important;
    font-weight: 700;
    white-space: nowrap;
}

.cpn-footer-phone-links a:hover,
.cpn-footer-whatsapp:hover {
    color: var(--themeht-primary-color) !important;
}

.cpn-footer-phone-sep {
    opacity: .35;
}

/* Compact trust section */
.cpn-footer-proof-compact {
    margin-top: 34px;
    padding-top: 28px;
}

.cpn-footer-proof-compact .cpn-footer-proof-head {
    margin-bottom: 14px;
}

.cpn-footer-proof-compact .cpn-footer-proof-head > span {
    margin-bottom: 4px;
    font-size: 11px;
}

.cpn-footer-proof-compact .cpn-footer-proof-head .cpn-footer-heading {
    font-size: 15px !important;
    margin-bottom: 0 !important;
}

.cpn-footer-proof-compact .cpn-footer-proof-card {
    min-height: 118px;
    padding: 12px 13px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    text-align: right;
    border-radius: 15px;
}

.cpn-footer-proof-compact .cpn-footer-proof-card:hover {
    transform: translateY(-2px);
}

.cpn-footer-proof-compact .cpn-footer-proof-media {
    width: 64px;
    height: 96px;
    padding: 5px;
    border-radius: 11px;
}

.cpn-footer-proof-compact .cpn-footer-proof-media-enamad {
    width: 64px;
    height: 78px;
}

.cpn-footer-proof-compact .cpn-footer-proof-copy {
    min-width: 0;
}

.cpn-footer-proof-compact .cpn-footer-proof-card h6 {
    min-height: 0;
    margin: 0;
    font-size: 12px;
    line-height: 1.75;
    text-align: right;
}

.cpn-footer-proof-compact .cpn-footer-proof-card p {
    margin-top: 5px;
    font-size: 10px;
    line-height: 1.7;
    text-align: right;
}

@media (max-width: 991px) {
    .cpn-footer-brand-col .cpn-footer-contact-toggle {
        max-width: 100%;
    }

    .cpn-footer-proof-compact .cpn-footer-proof-card {
        min-height: 112px;
    }
}

@media (max-width: 767px) {
    .cpn-footer-main-row {
        --bs-gutter-y: 2rem;
    }

    .cpn-footer-brand-col {
        margin-bottom: 2px;
    }

    .cpn-footer-contact-wide {
        margin-top: 18px;
        padding: 16px;
    }

    .cpn-footer-phone-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .cpn-footer-phone-links {
        justify-content: flex-start;
    }

    .cpn-footer-proof-compact {
        margin-top: 28px;
        padding-top: 24px;
    }

    .cpn-footer-proof-compact .cpn-footer-proof-card {
        grid-template-columns: 54px minmax(0, 1fr);
        min-height: 96px;
        padding: 10px 11px;
    }

    .cpn-footer-proof-compact .cpn-footer-proof-media {
        width: 54px;
        height: 81px;
    }

    .cpn-footer-proof-compact .cpn-footer-proof-media-enamad {
        width: 54px;
        height: 66px;
    }
}

/* =========================================================
   Footer V4 — international offices + compact proof logos
   ========================================================= */
.cpn-footer-contact-collapse,
.cpn-footer-contact-wide {
    overflow: visible !important;
    max-height: none !important;
}

.cpn-footer-office-grid .cpn-footer-contact-card {
    height: 100%;
}

.cpn-footer-contact-card p[dir="ltr"] {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
    font-size: 11px;
    line-height: 1.75;
}

.cpn-footer-sales-card {
    min-height: auto;
    display: flex;
    align-items: center;
}

.cpn-footer-sales-card .cpn-footer-sales-contact {
    width: 100%;
}

.cpn-footer-sales-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
    margin-top: 6px;
}

.cpn-footer-sales-grid .cpn-footer-phone-line {
    margin-top: 0;
}

/* English credibility labels */
.cpn-footer-proof-compact .cpn-footer-proof-card h6[dir="ltr"],
.cpn-footer-proof-compact .cpn-footer-proof-card p[dir="ltr"] {
    direction: ltr;
    unicode-bidi: plaintext;
    text-align: left;
    font-family: Arial, sans-serif;
}

/* Keep proof logos compact on desktop too */
.cpn-footer-proof-compact .cpn-footer-proof-media {
    width: 64px;
    height: 96px;
    max-width: 67px;
    max-height: 102px;
}

.cpn-footer-proof-compact .cpn-footer-proof-media img {
    width: 100% !important;
    height: 100% !important;
    max-width: 67px !important;
    max-height: 102px !important;
    object-fit: contain !important;
}

.cpn-footer-proof-compact .cpn-footer-proof-media-enamad,
.cpn-footer-proof-compact .cpn-footer-proof-media-enamad img {
    max-width: 67px !important;
    max-height: 67px !important;
}

@media (max-width: 767px) {
    .cpn-footer-contact-wide {
        overflow: visible !important;
        max-height: none !important;
    }

    .cpn-footer-sales-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .cpn-footer-proof-compact .cpn-footer-proof-card {
        grid-template-columns: 67px minmax(0, 1fr);
    }

    .cpn-footer-proof-compact .cpn-footer-proof-media {
        width: 67px !important;
        height: 102px !important;
        max-width: 67px !important;
        max-height: 102px !important;
        padding: 4px;
    }

    .cpn-footer-proof-compact .cpn-footer-proof-media img {
        width: auto !important;
        height: auto !important;
        max-width: 67px !important;
        max-height: 102px !important;
        margin: auto;
    }

    .cpn-footer-proof-compact .cpn-footer-proof-media-enamad {
        width: 67px !important;
        height: 67px !important;
        max-height: 67px !important;
    }

    .cpn-footer-proof-compact .cpn-footer-proof-media-enamad img {
        max-width: 67px !important;
        max-height: 67px !important;
    }
}


/* ===== Portfolio section cleanup ===== */
.cpn-portfolio-section {
    padding: 110px 0 120px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}
.cpn-portfolio-section .theme-title p {
    margin-top: 16px;
    max-width: 560px;
}
.cpn-portfolio-filter {
    margin-bottom: 0;
}
.cpn-portfolio-grid {
    margin-top: 38px;
}
.cpn-portfolio-grid .grid-sizer {
    display: none;
}
.cpn-portfolio-grid .grid-item {
    margin: 0 !important;
}
.cpn-portfolio-grid .portfolio-item {
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(73, 17, 129, 0.08);
    box-shadow: 0 18px 50px rgba(38, 16, 77, 0.08);
}
.cpn-portfolio-grid .portfolio-img {
    background: #f7f7fb;
}
.cpn-portfolio-grid .portfolio-img img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 4.8;
    object-fit: cover;
}
.cpn-portfolio-grid .portfolio-title {
    padding: 22px 24px 26px;
}
.cpn-portfolio-grid .portfolio-title span {
    display: inline-block;
    margin-bottom: 8px;
}
.cpn-portfolio-grid .portfolio-title h4,
.cpn-portfolio-grid .portfolio-title h4 a,
.cpn-portfolio-grid .portfolio-title h4 span {
    font-size: 22px;
    line-height: 1.55;
}
@media (max-width: 991.98px) {
    .cpn-portfolio-section {
        padding: 90px 0 90px;
    }
    .cpn-portfolio-section .theme-title,
    .cpn-portfolio-section .text-lg-end {
        text-align: center !important;
    }
    .cpn-portfolio-section .theme-title p {
        margin-right: auto;
        margin-left: auto;
    }
    .cpn-portfolio-filter {
        justify-content: center;
    }
}
@media (max-width: 767.98px) {
    .cpn-portfolio-section {
        padding: 74px 0 80px;
    }
    .cpn-portfolio-grid {
        margin-top: 28px;
    }
    .cpn-portfolio-grid .portfolio-img img {
        aspect-ratio: 4 / 4.5;
    }
    .cpn-portfolio-grid .portfolio-title {
        padding: 18px 18px 22px;
    }
    .cpn-portfolio-grid .portfolio-title h4,
    .cpn-portfolio-grid .portfolio-title h4 a,
    .cpn-portfolio-grid .portfolio-title h4 span {
        font-size: 18px;
    }
}


/* ===== Unified portfolio — based on portfolio-masonry.html ===== */
.cpn-portfolio-heading {
    padding: 105px 0 95px;
    background: #fff;
    position: relative;
    z-index: 2;
}
.cpn-portfolio-heading .theme-title p {
    max-width: 700px;
    margin: 14px auto 0;
}
.cpn-portfolio-body {
    padding: 105px 0 110px;
    overflow: hidden;
}
.cpn-unified-portfolio-grid .grid-item {
    padding: 15px;
}
.cpn-unified-portfolio-grid .portfolio-item {
    height: 100%;
    background: var(--themeht-white-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(51, 0, 102, 0.07);
    transition: transform .25s ease, box-shadow .25s ease;
}
.cpn-unified-portfolio-grid .portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 55px rgba(51, 0, 102, 0.12);
}
.cpn-unified-portfolio-grid .portfolio-img img {
    aspect-ratio: 7 / 6;
    object-fit: cover;
    display: block;
}
.cpn-unified-portfolio-grid .portfolio-title {
    padding: 24px 26px 27px;
}
.cpn-unified-portfolio-grid .portfolio-title > span {
    font-size: 14px;
    color: var(--themeht-primary-color);
}
.cpn-unified-portfolio-grid .portfolio-title h4 {
    margin-top: 6px;
    margin-bottom: 0;
}
.cpn-unified-portfolio-grid .portfolio-title h4,
.cpn-unified-portfolio-grid .portfolio-title h4 a,
.cpn-unified-portfolio-grid .portfolio-title h4 span {
    font-size: 21px;
    line-height: 1.65;
}
.cpn-portfolio-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 48px;
}
.cpn-portfolio-pagination a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--themeht-text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(51, 0, 102, 0.08);
    font-weight: 700;
    text-decoration: none;
}
.cpn-portfolio-pagination a:hover,
.cpn-portfolio-pagination a.active {
    color: #fff;
    background: var(--themeht-text-color);
}
@media (max-width: 991.98px) {
    .cpn-portfolio-heading { padding: 85px 0 72px; }
    .cpn-portfolio-body { padding: 86px 0 90px; }
    .cpn-unified-portfolio-grid.columns-3 .grid-item { width: 50%; }
}
@media (max-width: 767.98px) {
    .cpn-portfolio-heading { padding: 68px 0 58px; }
    .cpn-portfolio-body { padding: 74px 0 78px; }
    .cpn-unified-portfolio-grid.columns-3 .grid-item { width: 100%; padding: 10px 0; }
    .cpn-unified-portfolio-grid .portfolio-title { padding: 20px 20px 22px; }
    .cpn-unified-portfolio-grid .portfolio-title h4,
    .cpn-unified-portfolio-grid .portfolio-title h4 a,
    .cpn-unified-portfolio-grid .portfolio-title h4 span { font-size: 18px; }
}
