/* =========================================================
   NEWSTALKSHOW — COMPACT FOOTER THEME
   File: assets/css/footer.css
   Theme: Light Grey + Navy + Red
   ========================================================= */

/* Footer variables */
:root {
    --nts-footer-bg: #f1f4f8;
    --nts-footer-card: #ffffff;
    --nts-footer-heading: #17243b;
    --nts-footer-text: #586477;
    --nts-footer-muted: #8791a1;
    --nts-footer-accent: #e63946;
    --nts-footer-border: #e1e6ee;
    --nts-footer-bottom: #17243b;
    --nts-footer-width: 1200px;
}

/* Main footer */
#site-footer.nts-footer {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--nts-footer-bg);
    color: var(--nts-footer-text);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    border-top: 3px solid var(--nts-footer-accent);
    box-sizing: border-box;
    overflow: hidden;
}

/* Apply consistent sizing */
#site-footer.nts-footer *,
#site-footer.nts-footer *::before,
#site-footer.nts-footer *::after {
    box-sizing: border-box;
}

/* Main container */
.nts-footer .nts-footer-container {
    width: min(100% - 36px, var(--nts-footer-width));
    max-width: var(--nts-footer-width);
    margin: 0 auto;
}

/* Main footer content */
.nts-footer .nts-footer-main {
    padding: 30px 0 24px;
}

/* Four-column layout */
.nts-footer .nts-footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.2fr 1fr;
    gap: 26px;
    align-items: start;
}

/* Footer columns */
.nts-footer .nts-footer-column {
    min-width: 0;
    padding: 0;
    margin: 0;
}

/* Logo and branding */
.nts-footer .nts-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    margin: 0 0 10px;
}

.nts-footer .nts-footer-logo img {
    display: block;
    width: auto;
    max-width: 145px;
    max-height: 48px;
    object-fit: contain;
}

.nts-footer .nts-footer-logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.nts-footer .nts-footer-brand-name {
    margin: 0;
    color: var(--nts-footer-heading);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.nts-footer .nts-footer-description {
    margin: 0 0 12px;
    color: var(--nts-footer-text);
    font-size: 12px;
    line-height: 1.7;
}

/* Footer headings */
.nts-footer .nts-footer-title {
    position: relative;
    margin: 0 0 15px;
    padding: 0 0 9px;
    color: var(--nts-footer-heading);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    border-bottom: 1px solid var(--nts-footer-border);
}

.nts-footer .nts-footer-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 34px;
    height: 2px;
    background: var(--nts-footer-accent);
}

/* All footer lists */
.nts-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nts-footer li {
    margin: 0;
    padding: 0;
}

/* Category links and footer menu */
.nts-footer .nts-footer-categories li,
.nts-footer .nts-footer-menu li {
    margin: 0 0 7px;
    padding: 0;
}

.nts-footer .nts-footer-categories a,
.nts-footer .nts-footer-menu a {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
    color: var(--nts-footer-text);
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.nts-footer .nts-footer-categories a::before {
    content: "›";
    flex: 0 0 auto;
    color: var(--nts-footer-accent);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
}

.nts-footer .nts-footer-categories a:hover,
.nts-footer .nts-footer-menu a:hover {
    color: var(--nts-footer-accent);
    padding-left: 3px;
}

/* Latest news list */
.nts-footer .nts-footer-latest-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nts-footer .nts-footer-news-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 0 0 11px;
    border-bottom: 1px solid var(--nts-footer-border);
}

.nts-footer .nts-footer-news-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.nts-footer .nts-footer-news-image {
    display: block;
    width: 68px;
    height: 55px;
    overflow: hidden;
    border-radius: 5px;
    background: #e2e7ef;
}

.nts-footer .nts-footer-news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.nts-footer .nts-footer-news-item:hover .nts-footer-news-image img {
    transform: scale(1.06);
}

.nts-footer .nts-footer-news-content {
    min-width: 0;
}

.nts-footer .nts-footer-news-title {
    display: -webkit-box;
    margin: 0 0 5px;
    overflow: hidden;
    color: var(--nts-footer-heading);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.nts-footer .nts-footer-news-title:hover {
    color: var(--nts-footer-accent);
}

.nts-footer .nts-footer-news-date {
    display: block;
    color: var(--nts-footer-muted);
    font-size: 10px;
    line-height: 1.5;
}

/* Newsletter area */
.nts-footer .nts-footer-newsletter {
    margin: 0 0 18px;
}

.nts-footer .nts-footer-newsletter p {
    margin: 0 0 10px;
    color: var(--nts-footer-text);
    font-size: 12px;
    line-height: 1.6;
}

.nts-footer .nts-footer-newsletter form {
    display: flex;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    margin: 0;
}

.nts-footer .nts-footer-newsletter input[type="email"] {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 38px;
    margin: 0;
    padding: 0 10px;
    color: var(--nts-footer-heading);
    background: #ffffff;
    border: 1px solid var(--nts-footer-border);
    border-radius: 5px;
    outline: none;
    font: inherit;
    font-size: 12px;
}

.nts-footer .nts-footer-newsletter input[type="email"]:focus {
    border-color: var(--nts-footer-accent);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.1);
}

.nts-footer .nts-footer-newsletter button,
.nts-footer .nts-footer-newsletter input[type="submit"] {
    flex: 0 0 auto;
    min-height: 38px;
    margin: 0;
    padding: 0 12px;
    color: #ffffff;
    background: var(--nts-footer-accent);
    border: 1px solid var(--nts-footer-accent);
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nts-footer .nts-footer-newsletter button:hover,
.nts-footer .nts-footer-newsletter input[type="submit"]:hover {
    background: #c92836;
    border-color: #c92836;
    transform: translateY(-1px);
}

/* Contact information */
.nts-footer .nts-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    padding: 0;
}

.nts-footer .nts-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--nts-footer-text);
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.nts-footer .nts-footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    color: var(--nts-footer-accent);
    background: #ffffff;
    border: 1px solid var(--nts-footer-border);
    border-radius: 6px;
    font-size: 13px;
}

.nts-footer .nts-footer-contact-item a {
    color: inherit;
    text-decoration: none;
}

.nts-footer .nts-footer-contact-item a:hover {
    color: var(--nts-footer-accent);
}

/* Social media links */
.nts-footer .nts-footer-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 13px 0 0;
    padding: 0;
}

.nts-footer .nts-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    color: var(--nts-footer-heading);
    background: #ffffff;
    border: 1px solid var(--nts-footer-border);
    border-radius: 7px;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease,
                border-color 0.2s ease, transform 0.2s ease;
}

.nts-footer .nts-footer-socials a:hover {
    color: #ffffff;
    background: var(--nts-footer-accent);
    border-color: var(--nts-footer-accent);
    transform: translateY(-2px);
}

/* Optional decorative cityscape */
.nts-footer .nts-footer-cityscape {
    display: none !important;
}

/* Footer bottom strip */
.nts-footer .nts-footer-bottom {
    width: 100%;
    margin: 0;
    padding: 12px 0;
    color: #e6eaf1;
    background: var(--nts-footer-bottom);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nts-footer .nts-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 18px;
    width: min(100% - 36px, var(--nts-footer-width));
    max-width: var(--nts-footer-width);
    margin: 0 auto;
}

.nts-footer .nts-footer-copyright {
    margin: 0;
    color: #e6eaf1;
    font-size: 11px;
    line-height: 1.6;
}

.nts-footer .nts-footer-copyright a {
    color: #ffffff;
    text-decoration: none;
}

.nts-footer .nts-footer-copyright a:hover {
    color: #ff7882;
}

/* Bottom navigation */
.nts-footer .nts-footer-bottom-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 15px;
    margin: 0;
    padding: 0;
}

.nts-footer .nts-footer-bottom-menu a {
    color: #e6eaf1;
    font-size: 11px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nts-footer .nts-footer-bottom-menu a:hover {
    color: #ff7882;
}

/* Remove excessive margins from common footer elements */
.nts-footer p:last-child {
    margin-bottom: 0;
}

.nts-footer h1,
.nts-footer h2,
.nts-footer h3,
.nts-footer h4,
.nts-footer h5,
.nts-footer h6 {
    margin-top: 0;
}

/* Tablet layout */
@media (max-width: 1024px) {
    .nts-footer .nts-footer-main {
        padding: 26px 0 22px;
    }

    .nts-footer .nts-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 30px;
    }

    .nts-footer .nts-footer-column {
        min-width: 0;
    }
}

/* Mobile layout */
@media (max-width: 600px) {
    #site-footer.nts-footer {
        font-size: 12px;
    }

    .nts-footer .nts-footer-container,
    .nts-footer .nts-footer-bottom-inner {
        width: calc(100% - 28px);
    }

    .nts-footer .nts-footer-main {
        padding: 22px 0 18px;
    }

    .nts-footer .nts-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 23px;
    }

    .nts-footer .nts-footer-title {
        margin-bottom: 11px;
        font-size: 14px;
    }

    .nts-footer .nts-footer-brand-name {
        font-size: 19px;
    }

    .nts-footer .nts-footer-description {
        max-width: 440px;
    }

    .nts-footer .nts-footer-news-item {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .nts-footer .nts-footer-news-image {
        width: 74px;
        height: 57px;
    }

    .nts-footer .nts-footer-bottom {
        padding: 12px 0;
    }

    .nts-footer .nts-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .nts-footer .nts-footer-bottom-menu {
        gap: 7px 13px;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    .nts-footer .nts-footer-container,
    .nts-footer .nts-footer-bottom-inner {
        width: calc(100% - 22px);
    }

    .nts-footer .nts-footer-newsletter form {
        flex-direction: column;
    }

    .nts-footer .nts-footer-newsletter button,
    .nts-footer .nts-footer-newsletter input[type="submit"] {
        width: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .nts-footer *,
    .nts-footer *::before,
    .nts-footer *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}