/**
 * Premium Footer Builder Widget Styles
 *
 * @package NationalRajasthan
 */

.nr-footer {
    background: #ffffff;
    color: #333333;
    font-family: var(--nr-font-family, inherit);
    position: relative;
    width: 100%;
}

.nr-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
 * LAYOUT ROW & COLUMNS (FLEX GRID)
 * ========================================== */
.nr-layout-row {
    width: 100%;
    padding: 40px 0;
}

.nr-layout-row__inner {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.nr-layout-row--divided {
    border-top: 1px solid #EBEBEB;
}

/* Column Base */
.nr-layout-col {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
    flex-grow: 0;
    flex-shrink: 0;
}

.nr-layout-col__inner {
    height: 100%;
}

/* Column Widths (Desktop) */
.nr-layout-col--1-1 {
    flex-basis: 100%;
    max-width: 100%;
}

.nr-layout-col--1-2 {
    flex-basis: 50%;
    max-width: 50%;
}

.nr-layout-col--1-3 {
    flex-basis: 33.333%;
    max-width: 33.333%;
}

.nr-layout-col--1-4 {
    flex-basis: 25%;
    max-width: 25%;
}

.nr-layout-col--2-3 {
    flex-basis: 66.666%;
    max-width: 66.666%;
}

.nr-layout-col--3-4 {
    flex-basis: 75%;
    max-width: 75%;
}

/* Block Section Title */
.nr-footer-block-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111111;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--nr-red, #c8102e);
    display: inline-block;
}

/* ==========================================
 * BLOCKS STYLING
 * ========================================== */

/* Branding Block */
.nr-footer-branding {
    display: flex;
    flex-direction: column;
}

.nr-footer-branding__logo-link {
    display: inline-block;
    margin-bottom: 16px;
}

.nr-footer-branding__logo {
    display: block;
    height: auto;
}

.nr-footer-branding__logo--dark {
    display: none;
}

/* Dark mode logo support */
body.dark-mode .nr-footer-branding__logo--light {
    display: none;
}
body.dark-mode .nr-footer-branding__logo--dark {
    display: block;
}

.nr-footer-branding__description {
    font-size: 13px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* WP Menu Block */
.nr-footer-menu__nav {
    display: block;
}

.nr-footer-menu__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nr-footer-menu__list li {
    margin-bottom: 10px;
    position: relative;
}

.nr-footer-menu__list a {
    font-size: 13px;
    font-weight: 500;
    color: #444444;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.nr-footer-menu__list a:hover {
    color: var(--nr-red, #c8102e);
    padding-left: 4px;
}

/* Categories Grid Block */
.nr-footer-categories__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.nr-footer-categories__item {
    margin: 0;
}

.nr-footer-categories__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: #444444;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nr-footer-categories__link:hover {
    color: var(--nr-red, #c8102e);
}

.nr-footer-categories__count {
    font-size: 11px;
    color: #999999;
}

/* Latest Posts Block */
.nr-footer-posts__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nr-footer-posts__item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nr-footer-posts__thumb {
    width: 65px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.nr-footer-posts__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nr-footer-posts__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nr-footer-posts__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.nr-footer-posts__title a {
    color: #222222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nr-footer-posts__title a:hover {
    color: var(--nr-red, #c8102e);
}

.nr-footer-posts__date {
    font-size: 11px;
    color: #888888;
}

.nr-footer-posts__date i {
    margin-right: 3px;
}

/* Newsletter Block */
.nr-footer-newsletter__desc {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.nr-footer-newsletter__form {
    display: flex;
    gap: 8px;
}

.nr-footer-newsletter__input {
    flex-grow: 1;
    padding: 10px 14px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
}

.nr-footer-newsletter__input:focus {
    border-color: var(--nr-red, #c8102e);
}

.nr-footer-newsletter__submit {
    background-color: var(--nr-red, #c8102e);
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nr-footer-newsletter__submit:hover {
    background-color: #111111;
}

/* Social Block */
.nr-footer-social__icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nr-footer-social__link {
    width: 36px;
    height: 36px;
    border: 1px solid #EBEBEB;
    color: #555555;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.nr-footer-social--style-circle .nr-footer-social__link {
    border-radius: 50%;
}

.nr-footer-social--style-rounded .nr-footer-social__link {
    border-radius: 6px;
}

.nr-footer-social__link:hover {
    background-color: var(--nr-red, #c8102e);
    border-color: var(--nr-red, #c8102e);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Contact Block */
.nr-footer-contact__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nr-footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #555555;
}

.nr-footer-contact__item i {
    color: var(--nr-red, #c8102e);
    margin-top: 3px;
    width: 14px;
    text-align: center;
}

.nr-footer-contact__text {
    line-height: 1.4;
}

.nr-footer-contact__text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nr-footer-contact__text a:hover {
    color: var(--nr-red, #c8102e);
}

/* Mobile Apps Block */
.nr-footer-apps__content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nr-footer-apps__badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nr-footer-apps__link {
    display: inline-block;
    text-decoration: none;
}

.nr-footer-apps__link img {
    height: 38px;
    display: block;
}

.nr-footer-apps__fallback-btn {
    display: inline-block;
    background: #111111;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    text-transform: uppercase;
}

.nr-footer-apps__qr {
    width: 76px;
    height: 76px;
    border: 1px solid #ECECEC;
    border-radius: 6px;
    padding: 4px;
    background: #ffffff;
}

.nr-footer-apps__qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Ad Block */
.nr-footer-ad__img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.nr-footer-ad__placeholder {
    width: 100%;
    height: 120px;
    background: #F9F9F9;
    border: 1px dashed #E0E0E0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 13px;
}

/* ==========================================
 * BOTTOM BAR
 * ========================================== */
.nr-footer-bottom {
    border-top: 1px solid #EBEBEB;
    padding: 24px 0;
    margin-top: 10px;
    width: 100%;
}

.nr-footer-bottom__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-sizing: border-box;
}

.nr-footer-bottom__copyright {
    display: flex;
    flex-direction: column;
}

.nr-footer-bottom__copyright-text {
    font-size: 12px;
    color: #777777;
    font-weight: 500;
}

.nr-footer-bottom__credits {
    font-size: 11px;
    color: #999999;
    margin-top: 4px;
}

.nr-footer-bottom__links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.nr-footer-bottom__link {
    font-size: 12px;
    color: #666666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nr-footer-bottom__link:hover {
    color: var(--nr-red, #c8102e);
}

/* Sticky Bottom Bar Mode */
.nr-footer--has-sticky .nr-footer-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 9999;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    margin-top: 0;
    border-top: 1px solid #ECECEC;
}

.nr-footer--has-sticky .nr-footer-bottom__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Keyboard visible focus accessibility */
.nr-footer a:focus-visible,
.nr-footer button:focus-visible,
.nr-footer input:focus-visible {
    outline: 2px solid var(--nr-red, #c8102e);
    outline-offset: 2px;
}

/* ==========================================
 * RESPONSIVE ADAPTATIONS
 * ========================================== */
@media (max-width: 1024px) {
    .nr-layout-col--1-4,
    .nr-layout-col--1-3 {
        flex-basis: 50%;
        max-width: 50%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .nr-layout-row {
        padding: 30px 0;
    }
    
    .nr-layout-col {
        flex-basis: 100% !important;
        max-width: 100% !important;
        margin-bottom: 30px;
    }

    .nr-layout-col:last-child {
        margin-bottom: 0;
    }

    .nr-footer-bottom__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
