/* =========================
   NAVBAR + FOOTER LOGO SIZING
   ========================= */
.navbar .brand-logo,
.footer-logo {
    display: inline-flex;
    max-width: 140px;
}

.navbar .brand-logo img,
.footer-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-logo img {
    max-height: 80px;
}

/* =========================
   THEME LOGO SWAP (single system)
   Default: dark mode shows dark logo
   ========================= */
.logo-light {
    display: none !important;
}

.logo-dark {
    display: block !important;
}

body.light .logo-light,
html.light .logo-light {
    display: block !important;
}

body.light .logo-dark,
html.light .logo-dark {
    display: none !important;
}

/* =========================
   BRAND (logo + text inline)
   ========================= */
.brand-stack {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

/* logo wrapper */
.brand-mark {
    display: flex;
    align-items: center;
    margin-top: 6px;
    /* drops logo down a bit */
    flex: 0 0 auto;
}

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

/* text next to logo */
.brand-text {
    margin: 0;
    /* important: no top margin */
    font-size: 20px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.02em;
    white-space: nowrap;
    /* optional */
}

.pillar-card {
    display: block;
    height: 100%;
    padding: 16px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.pillar-card:hover {
    transform: translateY(-5.navbarpx);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.pillar-card__img {
    height: 160px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
}

.pillar-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.pillar-card__title {
    font-size: 18px;
    margin: 0 0 8px;
}

.pillar-card__text {
    font-size: 14px;
    margin: 0;
    opacity: 0.75;
    line-height: 1.4;
}

.pillar-card:hover .pillar-card__img img {
    transform: scale(1.05);
}

.project-card__inner {
    max-width: 300px;
    margin: auto;
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.project-card__inner:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .05);
}

.project-card__logo {
    padding: 22px 12px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

/* This is the key fix:
     A light “frame” behind the logo so transparent logos don’t disappear on dark themes */
.project-card__logo-frame {
    width: 100%;
    max-width: 220px;
    height: 92px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* works in both light and dark: subtle light surface + soft border */
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(0, 0, 0, .06);

    /* keeps it feeling premium */
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
}

.project-card__logo-frame img {
    height: 70px;
    width: auto;
    max-width: 85%;
    object-fit: contain;
}

/* clamp short description for consistency */
.short-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link,
.read-less-link {
    text-decoration: none;
}

/* On very bright (light) pages, keep the logo frame from looking too “white block” */
body:not(.dark) .project-card__logo-frame {
    background: rgba(255, 255, 255, .75);
}

@media (max-width: 767px) {
    .project-card__logo {
        min-height: 110px;
    }

    .project-card__logo-frame {
        max-width: 240px;
    }
}

/* Force footer links into 3-per-row without breaking other .tags usage */
footer.footer-style1 .footer-meta .tags.footer-links-3col {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 10px 12px !important;
    max-width: 380px;
    /* keeps the links block from becoming huge */
}

footer.footer-style1 .footer-meta .tags.footer-links-3col a {
    flex: 0 0 calc(33.333% - 8px) !important;
    width: calc(33.333% - 8px) !important;
    display: block !important;
    box-sizing: border-box !important;

    /* shrink the pill look */
    padding: 6px 10px !important;
    border-radius: 16px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
}

/* Tablet/mobile: 2-per-row */
@media (max-width: 768px) {
    footer.footer-style1 .footer-meta .tags.footer-links-3col {
        justify-content: flex-start !important;
        max-width: 100% !important;
    }

    footer.footer-style1 .footer-meta .tags.footer-links-3col a {
        flex: 0 0 calc(50% - 8px) !important;
        width: calc(50% - 8px) !important;
    }
}

/* Small phones: 1-per-row */
@media (max-width: 480px) {
    footer.footer-style1 .footer-meta .tags.footer-links-3col a {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

/* Honeypot: hide it off-screen (better than display:none for catching bots) */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.form2 .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form2 input[type="checkbox"] {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    width: 18px;
    height: 18px;
    padding: 0;
    margin-top: 4px;
    flex: 0 0 auto;
}

/* Stops the check icon from repeating if your theme uses a background-image */
.form2 .form-check-input {
    background-repeat: no-repeat;
    background-position: center;
}


/* Contact form alerts */
.dnx-alert-wrap {
    width: 100%;
}

.dnx-alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.dnx-alert-success {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.35);
}

.dnx-alert-error {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.35);
}