.custom-footer {
    display: grid;
    grid-template-columns: 2fr 1fr;
    width: 100%;
    overflow: visible;
    position: relative;
}

.footer-watermark {
    position: absolute;
    bottom: 0;
    left: 20px;
    font-family: var(--dg-font-heading, 'Encode Sans Condensed', sans-serif);
    font-size: clamp(1.25rem, 18.4vw, 10rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* LEFT SIDE */

.footer-left {
    background: var(--dg-primary);
    padding: 70px 60px;
}

.footer-brand {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand__logo {
    flex-shrink: 0;
}

.footer-brand__logo img {
    display: block;
    height: 56px;
    width: auto;
}


.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0 !important;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #cfcfcf;
    text-decoration: none;
    transition: 0.3s;
    font-size: 15px;
}

.footer-column ul li a i {
    width: 1rem;
    flex-shrink: 0;
    color: var(--dg-highlight);
    font-size: 0.85rem;
}

.footer-column ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* RIGHT SIDE */

.footer-right {
    background: var(--dg-secondary);
    position: relative;
    padding: 50px 30px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 2;
}

.footer-book {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.footer-book__img {
    width: 200px;
    max-width: 85%;
    height: auto;
    margin-top: -90px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    transform: rotate(-6deg);
}

.footer-book__content h2 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.footer-book__content p {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.footer-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #fff;
    color: #0a5cff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}

.footer-btn:hover {
    background: #111;
    color: #fff;
    transform: translateY(-2px);
}

/* BOTTOM */

.footer-bottom {
    background: #000;
    padding: 20px;
}

.footer-bottom__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.footer-bottom p {
    color: var(--dg-text-muted);
    font-size: 14px;
    margin: 0;
}

.footer-bottom__links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom__links a {
    color: var(--dg-text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom__links a:hover {
    color: var(--dg-highlight);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
    text-decoration: none;
}

.footer-social a:hover {
    transform: translateY(-2px);
    background: rgba(167, 199, 83, 0.2);
    border-color: rgba(167, 199, 83, 0.5);
}

@media (max-width: 576px) {
    .footer-bottom__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* RESPONSIVE — book column only on desktop (1024px+) */

@media (max-width: 1023px) {
    .custom-footer {
        grid-template-columns: 1fr;
    }

    .footer-right {
        display: none;
    }
}

@media (max-width: 1100px) and (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-left {
        padding: 50px 25px;
    }

    .footer-brand {
        gap: 1.25rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .footer-brand__logo img {
        height: 44px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-brand {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .footer-brand__logo img {
        margin: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}