/* ==========================================================================
   Certifications page (certifications.php) — builds on home.css + about.css
   ========================================================================== */

section[id], .ct2-group[id] { scroll-margin-top: 130px; }

/* ---------- Hero seal ---------- */
.ct-hero { min-height: 74vh; }
.ct-seal {
    position: relative;
    width: 340px;
    height: 340px;
    margin-left: auto;
    animation: popIn 1s var(--ease-spring) .8s both;
}
.ct-seal svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: spin 30s linear infinite;
}
.ct-seal text {
    fill: #ffc46b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 4px;
}
.ct-seal::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, .25);
}
.ct-seal-core {
    position: absolute;
    inset: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(150deg, var(--brand), var(--brand-dark));
    box-shadow: 0 25px 60px rgba(247, 151, 63, .5), inset 0 0 0 8px rgba(255, 255, 255, .15);
    animation: floatY 6s ease-in-out infinite;
}
.ct-seal-core i { font-size: 2.6rem; line-height: 1; }
.ct-seal-core strong { font-size: 2.4rem; font-weight: 900; line-height: 1.1; }
.ct-seal-core span { font-size: .78rem; font-weight: 600; opacity: .9; max-width: 120px; line-height: 1.3; }

/* ---------- Intro ---------- */
.ct-intro { padding: 5.5rem 0 4.5rem; background: #fff; }
.ct-intro-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.ct-intro .about-label { justify-content: center; }
.ct-intro-title {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}
.ct-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    margin: 1.4rem 0;
}
.ct-ornament span {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand));
    transition: width 1.2s var(--ease-out) .5s;
}
.ct-ornament span:last-child { background: linear-gradient(90deg, var(--brand), transparent); }
.ct-ornament.is-in span { width: 70px; }
.ct-ornament i {
    width: 9px;
    height: 9px;
    background: var(--brand);
    transform: rotate(45deg);
}
.ct-lead {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.85;
    color: #5f5a54;
}
.ct-figures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 3rem;
    border-top: 1px solid #efe6db;
    border-bottom: 1px solid #efe6db;
}
.ct-mini {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: 1.8rem 1rem 1.6rem;
    text-decoration: none;
    color: var(--ink);
    transition: background-color .4s ease;
}
.ct-mini + .ct-mini { border-left: 1px solid #efe6db; }
.ct-mini::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: var(--brand);
    transform: translateX(-50%);
    transition: width .45s var(--ease-out);
}
.ct-mini:hover { background: #fffaf4; color: var(--ink); }
.ct-mini:hover::after { width: 60%; }
.ct-mini strong {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--brand);
}
.ct-mini span { font-size: .9rem; font-weight: 600; color: #555; }
.ct-mini em {
    font-style: normal;
    font-size: .78rem;
    font-weight: 700;
    color: var(--brand-deep);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .35s ease, transform .35s var(--ease-out);
}
.ct-mini:hover em { opacity: 1; transform: none; }
@media (max-width: 575.98px) {
    .ct-intro { padding: 4rem 0 3rem; }
    .ct-mini { padding: 1.3rem .4rem; }
    .ct-mini strong { font-size: 2.1rem; }
    .ct-mini span { font-size: .78rem; text-align: center; }
    .ct-mini em { display: none; }
}

/* ---------- Certificates layout ---------- */
.ct2 {
    position: relative;
    padding: 3rem 0 6rem;
    background:
        radial-gradient(circle at 0% 20%, rgba(247, 151, 63, .08), transparent 40%),
        radial-gradient(circle at 100% 80%, rgba(48, 69, 30, .07), transparent 40%),
        linear-gradient(180deg, #fff 0%, #fbf6ef 100%);
}

/* Sticky side navigation */
.ct2-aside { position: sticky; top: calc(var(--header-h, 96px) + 1.5rem); }
.ct2-aside-title {
    display: block;
    margin: 0 0 .8rem .4rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #a09080;
}
.ct2-nav {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: .45rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(247, 151, 63, .15);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .06);
}
.ct2-nav button {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    padding: .8rem .9rem;
    border: 0;
    border-radius: 16px;
    background: none;
    text-align: left;
    font-weight: 700;
    font-size: .92rem;
    color: #555;
    transition: color .35s ease;
}
.ct2-nav button i {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    color: var(--brand);
    background: #fff4e8;
    transition: background-color .35s, color .35s;
}
.ct2-nav button span { flex: 1; line-height: 1.25; }
.ct2-nav button b {
    min-width: 26px;
    padding: .1rem .5rem;
    border-radius: 50px;
    font-size: .75rem;
    text-align: center;
    color: var(--brand-deep);
    background: rgba(247, 151, 63, .12);
    transition: background-color .35s, color .35s;
}
.ct2-nav button:hover { color: var(--brand); }
.ct2-nav button.active { color: #fff; }
.ct2-nav button.active i { background: rgba(255, 255, 255, .2); color: #fff; }
.ct2-nav button.active b { background: rgba(255, 255, 255, .25); color: #fff; }
.ct2-nav-pill {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 10px 22px rgba(247, 151, 63, .4);
    transition: transform .55s var(--ease-spring), width .55s var(--ease-spring), height .55s var(--ease-spring);
}
.ct2-aside-help {
    margin-top: 1.2rem;
    padding: 1.3rem;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(160deg, #2b351f, #1b1f17);
    box-shadow: 0 18px 40px rgba(27, 31, 23, .25);
}
.ct2-aside-help i { font-size: 1.6rem; color: #ffc46b; }
.ct2-aside-help p { margin: .5rem 0 .8rem; font-size: .88rem; color: rgba(255, 255, 255, .78); }
.ct2-aside-help a { color: #ffc46b; font-weight: 700; font-size: .88rem; text-decoration: none; }
.ct2-aside-help a i { font-size: .9rem; transition: transform .3s var(--ease-out); display: inline-block; }
.ct2-aside-help a:hover { color: #fff; }
.ct2-aside-help a:hover i { transform: translateX(5px); }

@media (max-width: 991.98px) {
    .ct2-aside { position: relative; margin: 0 -.75rem; padding: .6rem .75rem; }
    .ct2-aside-title, .ct2-aside-help { display: none; }
    .ct2-nav {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
        border-radius: 50px;
        background: rgba(255, 255, 255, .9);
        backdrop-filter: blur(12px);
    }
    .ct2-nav::-webkit-scrollbar { display: none; }
    .ct2-nav button { width: auto; white-space: nowrap; border-radius: 50px; padding: .45rem .9rem .45rem .45rem; }
    .ct2-nav button i { flex-basis: 30px; height: 30px; border-radius: 50%; }
    .ct2-nav-pill { border-radius: 50px; }
}

/* Groups */
.ct2-group { margin-bottom: 4rem; }
.ct2-group:last-child { margin-bottom: 0; }
.ct2-group.is-hidden { display: none; }
.ct2-group.enter { animation: ct2GroupIn .6s var(--ease-out) both; }
@keyframes ct2GroupIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}
.ct2-group-head {
    position: relative;
    display: flex;
    gap: 1.2rem;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--brand), rgba(247, 151, 63, 0) 70%) 1;
}
.ct2-group-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 4.2rem;
    font-weight: 700;
    line-height: .85;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--brand);
}
.ct2-group-head h2 {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 .35rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    color: var(--ink);
}
.ct2-group-head h2 i { font-size: 1.3rem; color: var(--brand); }
.ct2-group-head p { margin: 0; color: #6b6b6b; max-width: 640px; }

.ct2-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
@media (max-width: 767.98px) { .ct2-grid { grid-template-columns: 1fr; } }

/* ---------- Certificate card ---------- */
.ct2-cert {
    perspective: 1200px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
    transition-delay: var(--d, 0s);
}
.ct2-cert.is-in { opacity: 1; transform: none; }
.ct2-cert-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2.4rem 2.2rem 1.8rem;
    border-radius: 6px;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(247, 151, 63, .1), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(212, 175, 55, .1), transparent 45%),
        #fffdf8;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .9) inset,
        0 25px 50px rgba(60, 40, 10, .1),
        0 4px 10px rgba(60, 40, 10, .05);
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform .5s var(--ease-out), box-shadow .5s;
}
/* Double frame + corner ornaments */
.ct2-cert-inner::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(190, 140, 60, .45);
    outline: 1px solid rgba(190, 140, 60, .25);
    outline-offset: 4px;
    pointer-events: none;
}
.ct2-cert-inner::after {
    content: '';
    position: absolute;
    inset: 6px;
    pointer-events: none;
    background:
        linear-gradient(var(--brand), var(--brand)) top left / 22px 3px,
        linear-gradient(var(--brand), var(--brand)) top left / 3px 22px,
        linear-gradient(var(--brand), var(--brand)) top right / 22px 3px,
        linear-gradient(var(--brand), var(--brand)) top right / 3px 22px,
        linear-gradient(var(--brand), var(--brand)) bottom left / 22px 3px,
        linear-gradient(var(--brand), var(--brand)) bottom left / 3px 22px,
        linear-gradient(var(--brand), var(--brand)) bottom right / 22px 3px,
        linear-gradient(var(--brand), var(--brand)) bottom right / 3px 22px;
    background-repeat: no-repeat;
}
.ct2-cert:hover .ct2-cert-inner { box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 35px 70px rgba(247, 151, 63, .22), 0 6px 14px rgba(60, 40, 10, .06); }

/* Status ribbon (corner) */
.ct2-ribbon {
    position: absolute;
    top: 22px;
    right: -46px;
    z-index: 2;
    width: 190px;
    padding: .35rem 0;
    transform: rotate(45deg);
    text-align: center;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, #1f8a4c, #2fae63);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}
.ct2-ribbon i { margin-right: .3rem; }
.status-shipment .ct2-ribbon { background: linear-gradient(90deg, var(--brand-dark), var(--brand)); }
.status-standard .ct2-ribbon { background: linear-gradient(90deg, #3f6b23, #5d8f35); }
.is-expired .ct2-ribbon { background: linear-gradient(90deg, #b42318, #d92d20); font-size: .55rem; }

.ct2-kicker {
    display: block;
    width: fit-content;
    margin: 0 auto .9rem;
    padding: 0 42px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: #b08a4a;
    background:
        linear-gradient(currentColor, currentColor) left center / 30px 1px no-repeat,
        linear-gradient(currentColor, currentColor) right center / 30px 1px no-repeat;
}
.ct2-cert h3 {
    margin: 0 0 .5rem;
    padding-right: 2.2rem;
    text-align: center;
    padding-left: 2.2rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
    color: #2a2116;
}
.ct2-issuer {
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: .92rem;
    color: #8a7350;
    margin-bottom: 1rem;
}
.ct2-issuer strong { font-weight: 500; color: #5e4a2c; }
.ct2-desc {
    text-align: center;
    color: #6b6257;
    font-size: .92rem;
    line-height: 1.7;
    margin-bottom: 1.4rem;
}
.ct2-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    margin-bottom: 1.3rem;
}
.ct2-sign { display: grid; gap: .8rem; flex: 1; min-width: 0; }
.ct2-sign div { display: flex; flex-direction: column; }
.ct2-sign span {
    padding-bottom: .25rem;
    border-bottom: 1px solid rgba(120, 90, 50, .35);
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1rem;
    color: #2a2116;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ct2-sign small { margin-top: .25rem; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #a89478; }

/* Seal medallion */
.ct2-seal {
    position: relative;
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    --seal-a: #f9c46b;
    --seal-b: #d9822b;
}
.status-standard .ct2-seal { --seal-a: #a7c47a; --seal-b: #4f7a2c; }
.is-expired .ct2-seal { --seal-a: #e9a39a; --seal-b: #b42318; }
.ct2-seal-burst {
    position: absolute;
    inset: 0;
    z-index: 1;
    filter: drop-shadow(0 6px 10px rgba(120, 70, 10, .3));
}
.ct2-seal-burst polygon { fill: var(--seal-b); }
.ct2-seal-face {
    position: absolute;
    inset: 12px;
    z-index: 2;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    color: #fff;
    background: radial-gradient(circle at 35% 30%, var(--seal-a), var(--seal-b) 75%);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .45), inset 0 -6px 12px rgba(0, 0, 0, .15);
    overflow: hidden;
}
.ct2-seal-face::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
    transform: rotate(25deg);
}
.ct2-seal-tail {
    position: absolute;
    bottom: -18px;
    z-index: 0;
    width: 20px;
    height: 38px;
    background: var(--seal-b);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}
.ct2-seal-tail.l { left: 26px; transform: rotate(18deg); }
.ct2-seal-tail.r { right: 26px; transform: rotate(-18deg); filter: brightness(.88); }

/* Stamp-in when the card appears */
.ct2-cert .ct2-seal { opacity: 0; transform: scale(2.4) rotate(-40deg); }
.ct2-cert.is-in .ct2-seal { animation: ct2Stamp .7s cubic-bezier(.2, .9, .3, 1.3) forwards; animation-delay: calc(var(--d, 0s) + .45s); }
@keyframes ct2Stamp {
    0% { opacity: 0; transform: scale(2.4) rotate(-40deg); }
    60% { opacity: 1; transform: scale(.92) rotate(6deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
.ct2-cert:hover .ct2-seal-burst { animation: spin 8s linear infinite; }
.ct2-cert:hover .ct2-seal-face::after { animation: ct2SealShine 1s ease; }
@keyframes ct2SealShine { to { left: 160%; } }

/* Action */
.ct2-action {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .75rem 1rem;
    border: 0;
    border-radius: 50px;
    background: #2a2116;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    transition: background-color .3s, color .3s, transform .35s var(--ease-spring), box-shadow .3s;
}
.ct2-action:hover { background: var(--brand); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 25px rgba(247, 151, 63, .4); }
.ct2-action.ghost { background: transparent; color: #5e4a2c; border: 1.5px solid rgba(176, 138, 74, .45); }
.ct2-action.ghost:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

@media (max-width: 575.98px) {
    .ct2-cert-inner { padding: 2.2rem 1.4rem 1.5rem; }
    .ct2-cert h3 { font-size: 1.25rem; }
    .ct2-seal { flex-basis: 78px; width: 78px; height: 78px; }
    .ct2-group-num { font-size: 3rem; }
}

/* ---------- Practices ---------- */
.ct2-practices { padding: 6rem 0; background: #fff; overflow: hidden; }
.ct2-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.ct2-steps-line {
    position: absolute;
    top: 60px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    border-radius: 3px;
    background: repeating-linear-gradient(90deg, #f0e3d3 0 10px, transparent 10px 18px);
}
.ct2-steps-line i {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brand), #ffc46b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 2s var(--ease-out) .3s;
}
.ct2-steps.is-in .ct2-steps-line i { transform: scaleX(1); }
.ct2-step { position: relative; text-align: center; }
.ct2-step-icon {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    box-shadow: 0 18px 40px rgba(247, 151, 63, .18);
    transition: transform .5s var(--ease-spring);
}
.ct2-step:hover .ct2-step-icon { transform: translateY(-8px) scale(1.05); }
.ct2-step-icon svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ct2-step-icon circle { fill: none; stroke-width: 5; }
.ct2-step-icon .track { stroke: #f6ece1; }
.ct2-step-icon .bar {
    stroke: var(--brand);
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.6s var(--ease-out);
    transition-delay: calc(var(--d, 0s) + .4s);
}
.ct2-step.is-in .ct2-step-icon .bar { stroke-dashoffset: 0; }
.ct2-step-icon i {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.9rem;
    color: #fff;
    background: linear-gradient(140deg, var(--brand), var(--brand-dark));
    box-shadow: 0 10px 22px rgba(247, 151, 63, .4);
    transition: transform .6s var(--ease-spring);
}
.ct2-step:hover .ct2-step-icon i { transform: rotate(-12deg); }
.ct2-step-icon span {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 800;
    color: #fff;
    background: var(--ink);
    border: 3px solid #fff;
}
.ct2-step h4 { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.ct2-step p { color: #6b6b6b; font-size: .92rem; margin: 0 auto; max-width: 240px; }
@media (max-width: 991.98px) {
    .ct2-steps { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
    .ct2-steps-line { display: none; }
}
@media (max-width: 479.98px) { .ct2-steps { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    .ct2-cert, .ct2-cert .ct2-seal { opacity: 1 !important; transform: none !important; animation: none !important; }
    .ct2-step-icon .bar { stroke-dashoffset: 0 !important; }
    .ct2-steps-line i { transform: none !important; }
}

/* ---------- Document viewer ---------- */
.ct-viewer {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(10, 12, 8, .85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .3s ease;
}
.ct-viewer[hidden] { display: none; }
.ct-viewer.open { opacity: 1; }
.ct-viewer-box {
    width: min(960px, 100%);
    height: min(88vh, 1100px);
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
    transform: scale(.94) translateY(20px);
    transition: transform .45s var(--ease-spring);
}
.ct-viewer.open .ct-viewer-box { transform: none; }
.ct-viewer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1.2rem;
    border-bottom: 1px solid #eee;
}
.ct-viewer-head h5 { margin: 0; font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.ct-viewer-titles { min-width: 0; }
.ct-viewer-titles h5 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-viewer-kicker { display: flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.ct-viewer-tools { display: flex; gap: .45rem; flex: 0 0 auto; }
.ct-hide { display: none !important; }
.ct-viewer-empty { max-width: 380px; padding: 2rem 1.5rem; text-align: center; }
.ct-viewer-empty > i { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 1rem; border-radius: 50%; font-size: 2rem; color: var(--brand); background: #fff; box-shadow: 0 10px 30px rgba(60, 40, 10, .1); }
.ct-viewer-empty h6 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.35rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.ct-viewer-empty p { color: #6b6257; margin-bottom: 1.3rem; }
.ct-viewer-cta { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.4rem; border-radius: 50px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; transition: background-color .2s; }
.ct-viewer-cta:hover { background: var(--brand-dark); color: #fff; }
.ct-viewer-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 0;
    display: grid;
    place-items: center;
    background: #f4efe9;
    color: var(--ink);
    text-decoration: none;
    transition: background-color .3s, color .3s;
}
.ct-viewer-btn:hover { background: var(--brand); color: #fff; }
.ct-viewer-body { flex: 1; background: #f4efe9; display: grid; place-items: center; overflow: auto; }
.ct-viewer-body iframe { width: 100%; height: 100%; border: 0; }
.ct-viewer-body img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (max-width: 575.98px) {
    .ct-viewer { padding: .5rem; }
}
