/**
 * Premium Child Theme Standard Templates Stylesheet
 *
 * @package NationalRajasthan
 */

.nr-template-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.nr-template-layout {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.nr-template-main {
    flex: 1 1 0%;
    min-width: 0;
}

.nr-template-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* ==========================================
 * SINGLE POST PAGE STYLES
 * ========================================== */
.nr-post-breadcrumbs {
    font-size: 13px;
    color: #888888;
    margin-bottom: 12px;
}

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

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

.nr-post-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.35;
    color: #111111;
    margin: 0 0 16px 0;
}

.nr-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #666666;
    padding-bottom: 16px;
    border-bottom: 1px solid #ECECEC;
    margin-bottom: 24px;
}

.nr-post-meta__author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #222222;
}

.nr-post-meta__author img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.nr-post-meta__item i {
    margin-right: 4px;
    color: #888888;
}

.nr-post-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.nr-post-share-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #555555;
    margin-right: 4px;
}

.nr-post-share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nr-post-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.nr-post-share-btn--facebook { background-color: #3b5998; }
.nr-post-share-btn--twitter { background-color: #000000; }
.nr-post-share-btn--whatsapp { background-color: #25d366; }
.nr-post-share-btn--telegram { background-color: #0088cc; }

.nr-post-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.nr-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.nr-post-featured-caption {
    font-size: 12px;
    color: #777777;
    padding: 8px 12px;
    background: #F9F9F9;
    border-left: 3px solid var(--nr-red, #c8102e);
    margin: 0;
}

/* Post Typography Body */
.nr-post-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333333;
    font-family: inherit;
}

.nr-post-content p {
    margin: 0 0 20px 0;
}

.nr-post-content h2,
.nr-post-content h3 {
    color: #111111;
    margin: 32px 0 16px 0;
    font-weight: 700;
}

.nr-post-content h2 { font-size: 22px; }
.nr-post-content h3 { font-size: 19px; }

.nr-post-content blockquote {
    border-left: 4px solid var(--nr-red, #c8102e);
    padding: 16px 20px;
    background: #F9F9F9;
    margin: 24px 0;
    font-style: italic;
    font-size: 18px;
    color: #555555;
    border-radius: 0 6px 6px 0;
}

.nr-post-content ul,
.nr-post-content ol {
    margin: 0 0 20px 24px;
    padding: 0;
}

.nr-post-content li {
    margin-bottom: 8px;
}

/* Post Tags */
.nr-post-tags {
    margin: 32px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.nr-post-tags-label {
    font-size: 13px;
    font-weight: 700;
    color: #333333;
}

.nr-post-tags a {
    background: #F2F2F2;
    color: #555555;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}

.nr-post-tags a:hover {
    background: var(--nr-red, #c8102e);
    color: #ffffff;
}

/* Author Biography */
.nr-post-author-bio {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #F9F9F9;
    border-radius: 8px;
    margin: 40px 0;
    border-left: 4px solid var(--nr-red, #c8102e);
}

.nr-post-author-bio__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.nr-post-author-bio__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nr-post-author-bio__name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.nr-post-author-bio__name a {
    color: inherit;
    text-decoration: none;
}

.nr-post-author-bio__desc {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

/* Post Navigation (Prev/Next) */
.nr-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #ECECEC;
    border-bottom: 1px solid #ECECEC;
    margin: 40px 0;
}

.nr-post-nav__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.nr-post-nav__link--next {
    text-align: right;
}

.nr-post-nav__label {
    font-size: 11px;
    text-transform: uppercase;
    color: #888888;
    font-weight: 700;
    margin-bottom: 4px;
}

.nr-post-nav__title {
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    line-height: 1.4;
    transition: color 0.2s;
}

.nr-post-nav__link:hover .nr-post-nav__title {
    color: var(--nr-red, #c8102e);
}

/* Related Posts */
.nr-related-posts {
    margin: 40px 0;
}

.nr-related-posts__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--nr-red, #c8102e);
    display: inline-block;
}

.nr-related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.nr-related-posts__card {
    display: flex;
    flex-direction: column;
}

.nr-related-posts__thumb {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.nr-related-posts__headline {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.nr-related-posts__headline a {
    color: #111111;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ==========================================
 * COMMENTS SECTION
 * ========================================== */
.nr-comments-area {
    margin: 40px 0;
}

.nr-comments-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--nr-red, #c8102e);
    display: inline-block;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment-list li.comment {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ECECEC;
}

.comment-body {
    display: flex;
    gap: 15px;
}

.comment-meta {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-meta img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex-grow: 1;
}

.comment-author-name {
    font-size: 14px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 4px 0;
}

.comment-author-name cite {
    font-style: normal;
}

.comment-date {
    font-size: 11px;
    color: #888888;
    margin-bottom: 8px;
    display: block;
}

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    color: #444444;
}

.comment-text p {
    margin: 0;
}

.comment-reply {
    margin-top: 8px;
}

.comment-reply-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--nr-red, #c8102e);
    text-decoration: none;
}

/* Comment Form */
.comment-respond {
    background: #F9F9F9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ECECEC;
}

.comment-reply-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form-comment textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.comment-form-comment textarea:focus {
    border-color: var(--nr-red, #c8102e);
}

.comment-form-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .comment-form-fields {
        grid-template-columns: 1fr;
    }
}

.comment-form-fields input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.comment-form-fields input:focus {
    border-color: var(--nr-red, #c8102e);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666666;
}

.form-submit input[type="submit"] {
    background-color: var(--nr-red, #c8102e);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.form-submit input[type="submit"]:hover {
    background-color: #111111;
}

/* ==========================================
 * ARCHIVE & SEARCH INDEX PAGE STYLES
 * ========================================== */
.nr-archive-header {
    background: #F9F9F9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--nr-red, #c8102e);
}

.nr-archive-header__title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #111111;
}

.nr-archive-header__desc {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

.nr-archive-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nr-archive-card {
    display: flex;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #ECECEC;
}

.nr-archive-card__thumb {
    width: 200px;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.nr-archive-card__content {
    display: flex;
    flex-direction: column;
}

.nr-archive-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.nr-archive-card__title a {
    color: #111111;
    text-decoration: none;
    transition: color 0.2s;
}

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

.nr-archive-card__meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #888888;
    margin-bottom: 8px;
}

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

/* Pagination */
.nr-archive-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 40px;
}

.nr-archive-pagination a,
.nr-archive-pagination span {
    padding: 8px 14px;
    border: 1px solid #EBEBEB;
    border-radius: 4px;
    color: #444444;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nr-archive-pagination .current,
.nr-archive-pagination a:hover {
    background: var(--nr-red, #c8102e);
    color: #ffffff;
    border-color: var(--nr-red, #c8102e);
}

/* ==========================================
 * CONTACT PAGE STYLES
 * ========================================== */
.nr-contact-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.nr-contact-col {
    flex: 1 1 350px;
}

.nr-contact-map {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ECECEC;
    margin-bottom: 24px;
    height: 300px;
}

.nr-contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.nr-contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nr-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #444444;
}

.nr-contact-item i {
    color: var(--nr-red, #c8102e);
    font-size: 16px;
    margin-top: 2px;
    width: 16px;
    text-align: center;
}

.nr-contact-text h5 {
    font-size: 14px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 4px 0;
}

.nr-contact-text p {
    margin: 0;
    line-height: 1.4;
}

.nr-contact-form-wrapper {
    background: #F9F9F9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ECECEC;
}

.nr-contact-form-wrapper h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #111111;
}

/* ==========================================
 * 404 PAGE STYLES
 * ========================================== */
.nr-404-container {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.nr-404-code {
    font-size: 108px;
    font-weight: 800;
    color: var(--nr-red, #c8102e);
    margin: 0;
    line-height: 1;
}

.nr-404-title {
    font-size: 24px;
    font-weight: 700;
    margin: 20px 0 10px 0;
    color: #111111;
}

.nr-404-desc {
    font-size: 14px;
    color: #666666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.nr-404-search {
    margin-bottom: 40px;
}

.nr-404-search form {
    display: flex;
    gap: 8px;
}

.nr-404-search input[type="search"] {
    flex-grow: 1;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
}

.nr-404-search input[type="search"]:focus {
    border-color: var(--nr-red, #c8102e);
}

.nr-404-search button {
    background-color: var(--nr-red, #c8102e);
    color: #ffffff;
    border: none;
    padding: 0 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.nr-404-search button:hover {
    background-color: #111111;
}

.nr-404-btn {
    display: inline-block;
    background-color: #111111;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.nr-404-btn:hover {
    background-color: var(--nr-red, #c8102e);
}

/* ==========================================
 * GENERAL SIDEBAR WIDGETS
 * ========================================== */
.nr-sidebar-widget {
    margin-bottom: 30px;
}

.nr-sidebar-widget__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;
}

.nr-sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nr-sidebar-widget ul li {
    padding: 12px 0;
    border-bottom: 1px dashed #E0E0E0;
    line-height: 1.5;
}

.nr-sidebar-widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nr-sidebar-widget ul li a {
    color: #222222;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nr-sidebar-widget ul li a:hover {
    color: var(--nr-red, #c8102e);
}

.nr-sidebar-widget ul li .post-date {
    display: block;
    font-size: 11px;
    color: #888888;
    margin-top: 4px;
    font-weight: 400;
}

/* ==========================================
 * TEMPLATE MOBILE ADAPTATIONS
 * ========================================== */
@media (max-width: 991px) {
    .nr-template-layout {
        flex-direction: column;
        gap: 30px;
    }

    .nr-template-sidebar {
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .nr-post-title {
        font-size: 26px;
    }
    
    .nr-archive-card {
        flex-direction: column;
        gap: 16px;
    }

    .nr-archive-card__thumb {
        width: 100%;
        aspect-ratio: 16/10;
        height: auto;
    }
}
