/*
Theme Name:         RozannaUpdates
Theme URI:          https://rozannaupdates.com/
Author:             RozannaUpdates
Author URI:         https://rozannaupdates.com/
Description:        RozannaUpdates is a modern, responsive, and feature-rich news and magazine WordPress child theme built on News Portal. It offers a clean and engaging design with dynamic category sections, rotating Latest News carousel with filling progress bar, and AdSense-optimized layouts.
Version:            1.0.0
Requires at least:  5.6
Tested up to:       7.1
Requires PHP:       7.2
License:            GNU General Public License v3 or later
License URI:        http://www.gnu.org/licenses/gpl-3.0.html
Template:           news-portal
Text Domain:        rozannaupdates
Tags:               news, blog, grid-layout, custom-colors, one-column, two-columns, three-columns, four-columns, full-width-template
*/

body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
.single .byline,
.group-blog .byline,
.posted-on,
.blog-author,
.blog-cat {
  font-family: 'Montserrat', sans-serif;
}

.np-post-title.small-size a,
.news-ticker-title>a,
.news_portal_featured_posts .np-single-post-wrap .np-post-content .np-post-title a {
  font-weight: 600;
}

.single .entry-content a {
  text-decoration: underline;
}

.header-layout--layout1 #masthead .site-branding {
  float: unset;
  display: inline-block;
  width: 40%;
  text-align: center;
}

.mt-flex {
  display: flex;
  align-items: center;
}

.header-layout--layout1 .search-main a,
.header-layout--layout1 .search-main a:focus {
  color: #000;
}

.header-layout--layout1 .np-icon-elements-wrapper,
.header-layout--layout1 .np-social-icons-wrapper {
  width: 30%;
  text-align: right;
}

.header-layout--layout1 .np-social-icons-wrapper {
  float: left;
  text-align: left;
}

.header-layout--layout1 #masthead .site-branding {
  margin: 0px;
}

.header-layout--layout1 .mt-social-icons-wrapper a {
  font-size: 20px;
  margin-right: 15px;
}

.header-layout--layout1 .mt-social-icons-wrapper {
  text-align: unset;
}

.header-layout--layout1 .np-icon-elements {
  float: unset;
  display: inline-block;
  margin: 10px 20px 0px 0;
}

.header-layout--layout1 .np-header-menu-wrapper .mt-container {
  display: flex;
  justify-content: center;
}

.header-layout--layout1 .np-logo-section-wrapper {
  padding: 30px 0px;
}

.header-layout--layout1 #masthead .mt-container .np-header-ads-area .widget {
  margin: 40px 0px 20px;
}

.widget .np-aside-social-wrapper .mt-social-icons-wrapper a i {
  color: #fff;
}

.site-footer .widget p {
  color: #fff;
}

.np-post-meta span,
.np-post-meta span a {
  color: #606060;
}

.featured-posts .np-post-meta span,
.featured-posts .np-post-meta span a {
  color: #d9d9d9;
}

.header-layout--layout1.site-mode--dark .search-main a,
.header-layout--layout1.site-mode--dark .search-main a:focus {
  color: #fff;
}

.home .entry-title {
	display: block;
}
.np-block.news_portal_featured_posts .byline {
	display: none !important;
}
.np-ticker-block {
	margin-bottom: 10px;
}

@media only screen and (max-width:768px) {
  .header-layout--layout1 .mt-social-icons-wrapper a {
    font-size: 18px;
  }

  .header-layout--layout1 #masthead .np-header-ads-area {
    margin-top: 0px;
  }
}

@media only screen and (max-width:600px) {
  .header-layout--layout1 .np-social-icons-wrapper {
    width: 100%;
    text-align: center;
  }

  .header-layout--layout1 .np-icon-elements-wrapper {
    padding: 20px 0px 0px;
  }

  .header-layout--layout1 #masthead .site-branding {
    margin: 10px 0px;
  }

  .header-layout--layout1 .site-title a,
  .header-layout--layout1 .site-description {
    font-size: 20px;
  }

  .header-layout--layout1 .np-logo-section-wrapper .mt-flex {
    display: block;
  }

  .header-layout--layout1 .np-logo-section-wrapper {
    padding: 20px 0px;
  }

  .header-layout--layout1 #masthead .site-branding {
    width: 70%;
  }

  .middle-primary .news_portal_featured_posts .np-single-post-wrap {
    width: 98%;
  }

  .featured-posts .np-post-meta span,
  .featured-posts .np-post-meta span a {
    color: #d9d9d9;
  }
}

/* -------------------------------------------------------------
 * Custom Multi-Section Category Layout (Hero + Other News + Sub-Grid)
 * Matches Option A & Khabariya Dose category structure
 * ------------------------------------------------------------- */
.np-custom-frontpage {
  padding-top: 20px;
  padding-bottom: 40px;
}

.np-cat-section {
  margin-bottom: 45px;
}

.np-section-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid #8B0000;
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.np-section-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  color: #111827;
  letter-spacing: -0.3px;
}

.np-section-title a {
  color: #111827;
  text-decoration: none;
  transition: color 0.15s ease;
}

.np-section-title a:hover {
  color: #8B0000;
}

.np-view-more-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c0392b;
  color: #c0392b !important;
  background: #ffffff;
  border-radius: 20px;
  padding: 4px 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.np-view-more-pill:hover {
  background: #8B0000 !important;
  color: #ffffff !important;
  border-color: #8B0000 !important;
}

/* Featured Box: Hero on Left, Other News on Right */
.np-featured-box {
  display: flex;
  flex-direction: row;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 22px;
}

/* Left Hero Column (~58%) */
.np-hero-column {
  flex: 0 0 58%;
  width: 58%;
  max-width: 58%;
  border-right: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
}

.np-hero-thumb {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #f1f5f9;
}

.np-hero-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.np-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.np-hero-thumb a:hover img {
  transform: scale(1.03);
}

.np-hero-info {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.np-badge {
  color: #8B0000;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.np-hero-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}

.np-hero-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.np-hero-title a:hover {
  color: #8B0000;
}

.np-hero-excerpt {
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 14px;
}

.np-time-meta {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.np-clock-icon {
  font-size: 13px;
}

/* Right Side Column (~42%): Numbered List 01-05 */
.np-side-column {
  flex: 0 0 42%;
  width: 42%;
  max-width: 42%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.np-side-header {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  padding: 10px 16px;
  background: #fafafa;
  border-bottom: 1px solid #edf2f7;
}

.np-side-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.np-side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.np-side-item:last-child {
  border-bottom: none;
}

.np-side-item:hover {
  background: #fafafa;
}

.np-side-number {
  font-size: 17px;
  font-weight: 800;
  color: #c0392b;
  min-width: 24px;
  flex-shrink: 0;
  text-align: center;
}

.np-side-thumb {
  width: 76px;
  min-width: 76px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.np-side-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.np-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.np-side-thumb a:hover img {
  transform: scale(1.06);
}

.np-side-info {
  flex: 1;
  min-width: 0;
}

.np-side-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-side-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.np-side-title a:hover {
  color: #8B0000;
}

.np-side-empty {
  padding: 24px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

/* Bottom Sub-Grid: 4 Columns of Cards */
.np-subgrid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 14px;
  margin-bottom: 10px;
}

.np-subgrid-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.np-subgrid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.np-subgrid-thumb {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #f1f5f9;
}

.np-subgrid-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.np-subgrid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.np-subgrid-thumb a:hover img {
  transform: scale(1.05);
}

.np-subgrid-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.np-subgrid-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-subgrid-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.np-subgrid-title a:hover {
  color: #8B0000;
}

/* Responsive Breakpoints */
@media only screen and (max-width: 768px) {
  .np-featured-box {
    flex-direction: column !important;
  }
  .np-hero-column {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid #edf2f7;
  }
  .np-side-column {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .np-subgrid-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media only screen and (max-width: 540px) {
  .np-hero-thumb {
    height: 220px !important;
  }
  .np-hero-title {
    font-size: 18px !important;
  }
  .np-subgrid-cards {
    grid-template-columns: 1fr !important;
  }
}

/* -------------------------------------------------------------
 * Standard AdSense-Optimized Container Width (1200px Ideal Balance)
 * ------------------------------------------------------------- */
.mt-container,
.home.blog #content .mt-container,
.np-header-menu-wrapper .mt-container,
.np-ticker-wrapper .mt-container,
.bottom-footer .mt-container {
  width: 92% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

#primary,
.np-custom-frontpage,
.home.blog #primary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* -------------------------------------------------------------
 * Hero News Rotating Slider, Filling Progress Bar & Zoom Animation
 * ------------------------------------------------------------- */
.np-slider-column {
  position: relative;
  display: flex;
  flex-direction: column;
}

.np-hero-slides-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.np-hero-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
  width: 100%;
  flex-direction: column;
  flex: 1;
}

.np-hero-slide.active {
  display: flex;
  opacity: 1;
}

/* Smooth Ken Burns Zoom-In Animation on Active Latest News Hero Image */
.np-hero-thumb {
  position: relative;
  overflow: hidden !important;
}

.np-latest-news-section .np-hero-slide.active .np-hero-thumb img {
  animation: npHeroZoomIn 5.2s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
  will-change: transform;
}

@keyframes npHeroZoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

/* 5-Segment Filling Progress Bar Track */
.np-slider-segments-track {
  width: 100%;
  display: flex;
  gap: 6px;
  padding: 10px 22px 14px;
  background: #ffffff;
  box-sizing: border-box;
  margin-top: auto;
  border-top: 1px solid #edf2f7;
}

.np-slider-segment {
  flex: 1;
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.np-slider-segment:hover {
  opacity: 0.8;
}

.np-segment-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8B0000, #c0392b);
  border-radius: 3px;
  transition: width 0.05s linear;
}

/* Interactive Top Stories Navigation */
.np-slider-nav-item {
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.np-slider-nav-item.active {
  background: #fdf2f2 !important;
  border-left: 4px solid #8B0000 !important;
  padding-left: 12px !important;
}

.np-slider-nav-item.active .np-side-number {
  transform: scale(1.15);
  color: #8B0000 !important;
}

.np-slider-nav-item.active .np-side-title a {
  color: #8B0000 !important;
  font-weight: 700 !important;
}

/* -------------------------------------------------------------
 * Mobile Ticker Overflow & Text Collision Fix
 * ------------------------------------------------------------- */
.np-ticker-block {
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  position: relative !important;
  overflow: hidden !important;
  margin: 15px 0 !important;
}

.ticker-content-wrapper .lslide {
  overflow: hidden !important;
}

.news-ticker-title {
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.news-ticker-title > a {
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  display: block !important;
}

@media only screen and (max-width: 768px) {
  .np-ticker-block {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    margin: 10px 0 !important;
  }

  .np-ticker-block .ticker-caption {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    float: none !important;
    padding: 7px 12px !important;
    background: #8B0000 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  .np-ticker-block .lSAction {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    top: auto !important;
    right: auto !important;
  }

  .np-ticker-block .lSAction > a {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 13px !important;
    line-height: 1 !important;
    opacity: 0.9 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    background: transparent !important;
  }

  .np-ticker-block .ticker-content-wrapper {
    width: 100% !important;
    float: none !important;
    height: 38px !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  .np-ticker-block .ticker-content-wrapper .post-cats-list {
    display: none !important;
  }

  .np-ticker-block .lSSlideOuter.vertical,
  .np-ticker-block .lSSlideWrapper {
    position: relative !important;
    overflow: hidden !important;
    height: 38px !important;
    width: 100% !important;
  }

  .np-ticker-block .lslide {
    height: 38px !important;
    line-height: 38px !important;
    overflow: hidden !important;
  }

  .np-ticker-block .news-ticker-title {
    line-height: 38px !important;
    margin: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
  }

  .np-ticker-block .news-ticker-title > a {
    display: block !important;
    line-height: 38px !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
  }
}



