/*
Theme Name: News Nagaria by Shail
Theme URI: https://newsnagaria.com
Description: A modern, modular, responsive standalone theme focused on news and blog portals.
Author: Shail
Author URI: https://newsnagaria.com
Version: 2.4.1
Text Domain: wph-news
*/


:root {
    /* Color Palette */
    --wph-primary: #dc2626;
    /* News Portal Red */
    --wph-secondary: #e11d48;
    /* Accent Rose */
    --wph-bg: #f8fafc;
    /* Light Slate Body Background */
    --wph-text: #0f172a;
    /* Slate 900 Text */
    --wph-text-muted: #64748b;
    /* Slate 500 Subtext */
    --wph-border: #e2e8f0;
    /* Slate 200 border */
    --wph-card-bg: #ffffff;
    /* Card Background */
    --wph-success: #22c55e;
    /* Verified / Success Green */

    /* Layout */
    --wph-container: 1240px;
    --wph-spacing: 0.85rem;
    --wph-radius: 10px;
    --wph-radius-sm: 6px;
    --wph-radius-full: 9999px;

    /* Shadows */
    --wph-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
    --wph-shadow-hover: 0 12px 20px -5px rgba(15, 23, 42, 0.06), 0 6px 8px -6px rgba(15, 23, 42, 0.06);
    --wph-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);

    /* Typography defaults */
    --wph-font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Base resets & typography */
*,
*:before,
*:after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: clip;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--wph-text);
    font-family: var(--wph-font);
    line-height: 1.5;
}

.site,
#page {
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--wph-text);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
    color: var(--wph-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--wph-text);
    font-family: var(--wph-font);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* Responsive Custom Logo Fixes */
.custom-logo-link {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.custom-logo-link img.custom-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ==========================================================================
   Standalone base styles
   (base styles the theme needs on its own)
   ========================================================================== */
body {
    background-color: var(--wph-bg);
    font-size: 17px;
}
p { margin-top: 0; margin-bottom: 1.5em; }
ul, ol { margin: 0 0 1.5em 3em; }
li > ul, li > ol { margin-bottom: 0; }
figure { margin: 0; }
table { border-collapse: collapse; max-width: 100%; }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background: #fff;
    clip: auto;
    clip-path: none;
    color: #0f172a;
    display: block;
    height: auto;
    left: 5px;
    padding: 12px 20px;
    top: 5px;
    width: auto;
    z-index: 100000;
}
.alignleft { float: left; margin: 0.25rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.25rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 0.85rem; color: var(--wph-text-muted); text-align: center; }
.gallery { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.gallery-item { margin: 0; }
iframe, video, embed { max-width: 100%; }

/* Comments */
.comments-area { margin-top: 2rem; }
.comments-title { font-size: 1.25rem; margin-bottom: 1rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 1.5rem; }
.comment-body { background: var(--wph-card-bg); border: 1px solid var(--wph-border); border-radius: var(--wph-radius); padding: 1rem; margin-bottom: 1rem; }
.comment-meta { font-size: 0.85rem; color: var(--wph-text-muted); margin-bottom: 0.5rem; }
.comment-author .avatar { float: left; margin-right: 0.75rem; border-radius: 50%; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--wph-border); border-radius: var(--wph-radius-sm); font-family: inherit;
}
.comment-form .submit {
    background: var(--wph-primary); color: #fff; border: 0; border-radius: var(--wph-radius-sm); padding: 0.65rem 1.25rem; font-weight: 600; cursor: pointer; font-family: inherit;
}

/* Widget areas (Appearance > Widgets) */
.wph-widget-area { margin-top: 1rem; margin-bottom: 1rem; }
.wph-widget-area .widget { margin-bottom: 1rem; }
.wph-widget-area .wph-widget-title { font-size: 1rem; margin-bottom: 0.75rem; }
.wph-widget-area img, .wph-widget-area iframe, .wph-widget-area ins { max-width: 100%; }
.wph-widget-area--wph-header-below,
.wph-widget-area--wph-home-above,
.wph-widget-area--wph-home-below { text-align: center; }

/* ==========================================================================
   Advanced Panel helpers
   ========================================================================== */
.wph-custom-widgets { display: contents; }
.wph-ad-slot { max-width: 100%; overflow: hidden; }
@media (min-width: 769px) { .wph-hide-desktop { display: none !important; } }
@media (max-width: 768px) { .wph-hide-mobile { display: none !important; } }

/* Floating social bar */
.wph-social-float { position: fixed; top: 50%; transform: translateY(-50%); z-index: 90; }
.wph-social-float--left { left: 0; }
.wph-social-float--right { right: 0; }
.wph-social-float .wph-social-links { flex-direction: column !important; gap: 4px !important; }
.wph-social-float .wph-social-icon {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    background: var(--wph-primary); color: #fff; font-size: 16px; text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: transform .2s ease;
}
.wph-social-float--left .wph-social-icon { border-radius: 0 10px 10px 0; }
.wph-social-float--right .wph-social-icon { border-radius: 10px 0 0 10px; }
.wph-social-float .wph-social-icon:hover { transform: scale(1.08); }
@media (max-width: 768px) { .wph-social-float--nomobile { display: none; } }

/* "Follow us" row after the share bar */
.wph-post-follow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.wph-post-follow-label { font-size: 0.85rem; font-weight: 700; color: var(--wph-text); }
.wph-post-follow .wph-social-icon {
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--wph-primary); color: #fff; font-size: 14px; text-decoration: none;
}
.wph-hero-right .wph-widget-area { margin: 0; text-align: center; width: 100%; }
.wph-inpost-ad { margin: 24px 0; text-align: center; clear: both; }
.wph-ad-label { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wph-text-muted); margin: 0 0 6px; text-align: center; width: 100%; opacity: .8; }

/* Hero: ad beside the slider, news list under the slider (desktop) */
@media (min-width: 992px) {
    .wph-hero-wrap-flex.wph-hero-split { display: grid !important; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); column-gap: 16px; row-gap: 12px; align-items: start; }
    .wph-hero-split .wph-slider-left { grid-column: 1; grid-row: 1; width: auto !important; }
    .wph-hero-split .wph-hero-right { grid-column: 1; grid-row: 2; width: auto !important; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; }
    .wph-hero-split .wph-hero-right > .wph-hlist-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .wph-hero-split > .wph-widget-area--wph-hero-right { grid-column: 2; grid-row: 1 / span 2; align-self: start; width: 100%; margin: 0; }
}

/* Hero (tablet/phone): slider first, then the ad (Hero Right Column), then the news list.
   .wph-hero-right becomes "display: contents" so its news cards and the ad can be ordered
   as direct children of the hero wrap. Desktop (992px+) is untouched. */
@media (max-width: 991px) {
    .wph-hero-wrap-flex { gap: 12px !important; }
    .wph-hero-wrap-flex > .wph-slider-left { order: 1; }
    .wph-hero-wrap-flex .wph-hero-right { display: contents !important; }
    .wph-hero-wrap-flex .wph-widget-area--wph-hero-right { order: 2; width: 100% !important; max-width: 100%; margin: 0; overflow: hidden; }
    .wph-hero-wrap-flex .wph-hero-right > .wph-hlist-card { order: 3; flex: none !important; width: 100% !important; box-sizing: border-box; }
}

/* Category / archive pages on phones: stack the card (image on top, text below)
   instead of a cramped side-by-side row. */
@media (max-width: 768px) {
    .wph-archive-content,
    .wph-archive-content .wph-list-layout { min-width: 0; max-width: 100%; }
    .wph-archive-content .wph-archive-list-item {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.85rem !important;
        padding: 0.85rem !important;
    }
    .wph-archive-content .wph-archive-list-item .wph-card-img-wrap {
        width: 100% !important;
        flex-shrink: 1 !important;
    }
    .wph-archive-content .wph-archive-list-item .wph-card-body { width: 100%; min-width: 0; }
    .wph-archive-content .wph-archive-list-item .wph-card-title { font-size: 1.05rem !important; line-height: 1.35; overflow-wrap: anywhere; }
    .wph-section-archive-container .page-title { font-size: 1.6rem !important; overflow-wrap: anywhere; }
    .wph-single-sidebar { position: static !important; }
    .wph-archive-content .wph-archive-list-item:hover { transform: none !important; }
}

