/**
* Template Name: Flattern
* Template URL: https://bootstrapmade.com/flattern-multipurpose-bootstrap-template/
* Updated: Aug 07 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
@font-face {
  font-family: 'telugu'; /* You can name it anything */
  src: url('font.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Ensures the text is visible with a fallback font while loading */
}

:root {
  --default-font: "telugu", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Lato", sans-serif;
  --nav-font: "Raleway", sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #4d4643; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #2b2320; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #f03c02; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

/*--------------------------------------------------------------
# General Styles
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  color:red;
}

/*--------------------------------------------------------------
# Header Styles - Responsive Design
--------------------------------------------------------------*/
.header {
  background-color: var(--surface-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
   .navbar-brand img {
            max-height: 95px;
            min-width: 95px;            
            width: auto;
        }

     
.header.sticky-top {
  z-index: 1020;
}

/* Navbar Styling */
.navbar {
  background-color: var(--surface-color) !important;
   padding: 0px; 
}

.navbar-brand {
  margin-right: auto;
}


/* Navigation Links */
.navbar-nav .nav-link {
  color: var(--default-color) !important;
  font-family: var(--nav-font);
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-color) !important;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

/* User Profile Link */
.navbar .user-profile {
  color: var(--default-color);
  font-family: var(--nav-font);
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin-left: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.navbar .user-profile:hover {
  color: var(--accent-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.navbar .user-profile i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Dropdown Menu */
.navbar-nav .dropdown-menu {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
  padding: 0.5rem 0;
}

.navbar-nav .dropdown-item {
  color: var(--default-color);
  font-family: var(--nav-font);
  font-weight: 400;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
}

/* Mobile Menu Toggle */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  font-size: 1.0rem;
  line-height: 1;
  background: transparent;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--accent-color), 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/*--------------------------------------------------------------
# Responsive Design - Mobile First
--------------------------------------------------------------*/

/* Extra Small Devices (phones, 575.98px and down) */
@media (max-width: 575.98px) {
  .navbar-brand img {
    max-height: 80px;
  }


  
  .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
  }
  
  .navbar .user-profile {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .navbar .user-profile i {
    font-size: 1.1rem;
  }
  
  .navbar-nav .dropdown-menu {
    margin-top: 0.25rem;
    border-radius: 5px;
  }
  
  .navbar-nav .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .navbar-brand img {
    max-height: 75px;
  }
  
  .navbar-nav .nav-link {
    font-size: 0.95rem;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .navbar-brand img {
    max-height: 90px;
  }
  
  .navbar-nav .nav-link {
    font-size: 1rem;
  }
  
  .navbar .user-profile {
    margin-left: 1.5rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .navbar-brand img {
    max-height: 85px;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.5rem;
  }
  
  .navbar .user-profile {
    margin-left: 2rem;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
/* @media (min-width: 1200px) {*/

  
/*  .navbar-brand img {*/
/*    max-height: 55px;*/
/*  }*/
  
/*  .navbar-nav .nav-link {*/
/*    padding: 0.75rem 1.25rem;*/
/*  }*/
/*} */

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.bg-white {
  background-color: var(--surface-color) !important;
}

.bg-light {
  background-color: color-mix(in srgb, var(--default-color), transparent 95%) !important;
}

/*--------------------------------------------------------------
# Animation & Transitions
--------------------------------------------------------------*/
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-nav .dropdown-menu {
  animation: fadeIn 0.3s ease-out;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# Accessibility Improvements
--------------------------------------------------------------*/
.navbar-nav .nav-link:focus,
.navbar .user-profile:focus,
.navbar-toggler:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .navbar-nav .nav-link,
  .navbar .user-profile {
    border: 1px solid transparent;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar .user-profile:hover {
    border-color: var(--accent-color);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/**
* Professional News Website CSS - Flattern Theme Integration
* Responsive design for news portal
*/

/*--------------------------------------------------------------
# News Website Specific Variables
--------------------------------------------------------------*/
:root {
  /* News specific colors */
  --news-primary: #f03c02;
  --news-secondary: #2b2320;
  --news-accent: #ff6b35;
  --news-muted: #6c757d;
  --news-light: #f8f9fa;
  --news-dark: #343a40;
  --news-border: #e9ecef;
  --news-shadow: rgba(0, 0, 0, 0.1);
  --news-hover: rgba(240, 60, 2, 0.1);
}

/*--------------------------------------------------------------
# Main Layout
--------------------------------------------------------------*/
.main {
  padding-top: 0;
  background-color: var(--background-color);
}

/*--------------------------------------------------------------
# Flash News Section - Hero Area
--------------------------------------------------------------*/
.flash-news-section {
  background: linear-gradient(135deg, var(--news-light) 0%, #ffffff 100%);
  padding: 2rem 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--news-border);
}

/* Large News Slider */
.large-news-slider {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--news-shadow);
  height: 400px;
}

.large-news-slider .box {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.large-news-slider .box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
  z-index: 2;
}

.large-news-slider .news-image {
  width: 100%;
  height: 400px;
  object-fit: fill;
  transition: transform 0.3s ease;
}

.large-news-slider .box:hover .news-image {
  transform: scale(1.05);
}

.large-news-slider .news-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: white;
  font-size: 1.0rem;
  font-weight: 700;
  line-height: 1.3;
  z-index: 3;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Small News Cards */
.small-news-slider {
  max-height: 400px;
  overflow: hidden;
}

.small-news-slider .card {
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px var(--news-shadow);
  margin-bottom: 1rem;
  
}

.small-news-slider .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px var(--news-shadow);
}

.small-news-slider .card img {
  border-radius: 10px 0 0 10px;
  width: 120px;
  height: 80px;
  object-fit: fill;
}

.small-news-slider .nm-slider-title {
  color: var(--news-secondary);
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Advertisement Cards */
.ad-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--news-shadow);
  transition: transform 0.3s ease;
  height: 100%;
}

.ad-card:hover {
  transform: translateY(-5px);
}

.ad-card img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.3s ease;
}

.ad-card:hover img {
  transform: scale(1.02);
}

/*--------------------------------------------------------------
# Trending News Section
--------------------------------------------------------------*/
.services.section {
  padding: 1rem 0;
  background-color: var(--news-light);
}

.services .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.services .section-title h2 {
  font-size: 2.5rem;
  color: var(--news-secondary);
  margin-bottom: 1rem;
}

.services .section-title p {
  color: var(--news-muted);
  font-size: 1.1rem;
}

/* Trending News Cards */
.services .card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px var(--news-shadow);
  height: 100%;
}

.services .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px var(--news-shadow);
}

.services .image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.services .card-img-top {
  width: 100%;
  height: 200px;
  object-fit: fill;
  transition: transform 0.3s ease;
}

.services .card:hover .card-img-top {
  transform: scale(1.1);
}

.services .card-body {
  padding: 1.5rem;
  background: white;
}

.services .card-title {
  color: var(--news-secondary);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.services .card:hover .card-title {
  color: var(--news-primary);
}

/*--------------------------------------------------------------
# News Filter Section
--------------------------------------------------------------*/
.news.section {
  padding: 1rem 0;
  background-color: white;
}

/* Filter Buttons */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 0;
  list-style: none;
}

.news-filters li {
  background: white;
  color: var(--news-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--news-border);
  font-weight: 600;
  font-size: 0.9rem;
}

.news-filters li:hover,
.news-filters li.filter-active {
  background: var(--news-primary);
  color: white;
  border-color: var(--news-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(240, 60, 2, 0.3);
}

/* Sticky Filters */
.sticky-filters {
  position: sticky;
  top: 100px;
  z-index: 100;
  background: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px var(--news-shadow);
  margin-bottom: 2rem;
  border-radius: 15px;
}

.sticky-filters.hidden {
  transform: translateY(-100px);
  opacity: 0;
  transition: all 0.3s ease;
}

/* News Items Grid */
.isotope-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.news-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--news-shadow);
  transition: all 0.3s ease;
  position: relative;
}

.news-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px var(--news-shadow);
}

.news-item img {
  width: 100%;
  height: 200px;
  object-fit: fill;
  transition: transform 0.3s ease;
}

.news-item:hover img {
  transform: scale(1.05);
}

.news-info {
  padding: 1.2rem;
}

.news-info h4 {
  color: var(--news-secondary);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-info a {
  color: var(--news-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-info a:hover {
  color: var(--news-accent);
}

/*--------------------------------------------------------------
# Top Viewed Section
--------------------------------------------------------------*/
.top-viewed-section {
  background: var(--news-light);
  padding: 3rem 0;
  margin-top: 3rem;
}

.section-heading h5 {
  color: var(--news-secondary);
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--news-primary);
  display: inline-block;
}

/* Accordion Styling */
.accordion {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--news-shadow);
}

.accordion-item {
  border: none;
  border-bottom: 1px solid var(--news-border);
}

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

.accordion-button {
  background: white;
  color: var(--news-secondary);
  font-weight: 600;
  padding: 1.5rem;
  border: none;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: var(--news-hover);
  color: var(--news-primary);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(240, 60, 2, 0.25);
}

.accordion-button::after {
  color: var(--news-primary);
}

.accordion-body {
  padding: 1.5rem;
  background: white;
  color: var(--news-muted);
  line-height: 1.6;
}

.accordion-body a {
  color: var(--news-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.accordion-body a:hover {
  color: var(--news-primary);
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/

/* Mobile Devices */
@media (max-width: 768px) {
  .large-news-slider {
    height: 250px;
  }
  
  .large-news-slider .box {
    height: 250px;
  }
  
  .large-news-slider .news-image {
    height: 250px;
  }
  
  .large-news-slider .news-title {
    font-size: 1.2rem;
    padding: 1rem;
  }
  
  .small-news-slider .card img {
    width: 100px;
    height: 60px;
  }
  
  .small-news-slider .nm-slider-title {
    font-size: 0.5rem;
  }
  
  .services .image-container {
    height: 150px;
  }
  
  .services .card-img-top {
    height: 150px;
  }
  
  .isotope-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .news-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 1rem;
  }
  
  .news-filters li {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Tablet Devices */
@media (min-width: 768px) and (max-width: 1024px) {
  .isotope-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .large-news-slider {
    height: 300px;
  }
  
  .large-news-slider .box {
    height: 300px;
  }
  
  .large-news-slider .news-image {
    height: 300px;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .isotope-container {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
  
  .large-news-slider {
    height: 450px;
  }
  
  .large-news-slider .box {
    height: 450px;
  }
  
  .large-news-slider .news-image {
    height: 450px;
  }
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.shadow-effect {
  box-shadow: 0 5px 15px var(--news-shadow);
}

.text-primary {
  color: var(--news-primary) !important;
}

.bg-primary {
  background-color: var(--news-primary) !important;
}

.border-primary {
  border-color: var(--news-primary) !important;
}

/*--------------------------------------------------------------
# Animation Classes
--------------------------------------------------------------*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease-out;
}

/*--------------------------------------------------------------
# Slick Slider Customization
--------------------------------------------------------------*/
.slick-dots {
  bottom: 20px;
}

.slick-dots li button:before {
  color: white;
  font-size: 12px;
  opacity: 0.5;
}

.slick-dots li.slick-active button:before {
  opacity: 1;
  color: var(--news-primary);
}

/*--------------------------------------------------------------
# Loading States
--------------------------------------------------------------*/
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* CAtegory section on index */
.news-category-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
    z-index: 2;
}
    /* View_news.php */
.nm-container {
        display: flex;
        gap: 20px;
        max-width: 1200px;
        margin: 20px auto;
        padding: 0 15px;
    }
    
    /* Left Side - Main Content */
    .nm-main-content {
        flex: 2;
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .nm-news-article {
        padding: 20px;
    }
    
    .nm-news-image {
        width: 100%;
        height: 400px;
        object-fit: fill;
        border-radius: 8px;
        margin-bottom: 20px;
    }
    
    .nm-headline {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 10px;
        line-height: 1.3;
        color: #333;
    }
    
    .nm-article-body {
        font-size: 17px;
        line-height: 1.6;
        color: #555;
        margin-bottom: 30px;
    }
    
    .nm-navigation {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        padding: 5px;
        margin: 10px;
        border-top: 1px solid #eee;
        background: #f9f9f9;
    }
    
    .nm-nav-btn {
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .nm-nav-btn.prev {
        background: #ffc107;
        color: #000;
    }
    
    .nm-nav-btn.next {
        background: #dc3545;
        color: white;
    }
    
    .nm-nav-btn:hover:not([disabled]) {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        text-decoration: none;
        color: inherit;
    }
  
    .nm-nav-btn.disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: none;
}

    /* Related News Section */
    .nm-related-news {
        padding: 20px;
        border-top: 1px solid #eee;
        background: #fff;
    }
    
    .nm-related-title {
        font-size: 17px;
        /* font-weight: bold; */
        margin-bottom: 20px;
        color: #333;
        border-bottom: 2px solid #f03c02;
        padding-bottom: 10px;
    }
    
    .nm-slider-wrapper {
        position: relative;
        overflow: hidden;
    }
    
    .nm-slider {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding-bottom: 10px;
    }
    
    .nm-slider-item {
        min-width: calc(33.333% - 10px);
        flex: 0 0 calc(33.333% - 10px);
        background: white;
        border: 1px solid #eee;
        border-radius: 8px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .nm-slider-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nm-slider-item img {
        width: 100%;
        height: 180px;
        object-fit: fill;
        display: block;
    }
    
    .nm-slider-info {
        padding: 15px;
    }
    
    .nm-slider-title {
        font-weight: 500;
        font-size: 14px;
        margin-bottom: 8px;
        color: #333;
        line-height: 1.4;
    }
    
    .nm-slider-excerpt {
        font-size: 16px;
        color: #666;
        line-height: 1.4;
    }
    
    .nm-slider::-webkit-scrollbar {
        height: 6px;
    }
    
    .nm-slider::-webkit-scrollbar-thumb {
        background-color: #f03c02;
        border-radius: 3px;
    }
    
    .nm-slider::-webkit-scrollbar-track {
        background-color: #f1f1f1;
    }
    
    /* Right Side - Sidebar */
    .nm-sidebar {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    /* Ads Section */
    .nm-ads-section {
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .nm-ads-title {
        background: #f8f9fa;
        padding: 15px;
        font-size: 18px;
        font-weight: bold;
        margin: 0;
        border-bottom: 1px solid #eee;
        color: #333;
    }
    
    .nm-ads-content {
        padding: 15px;
    }
    
    .nm-ad-item {
        display: block;
        margin-bottom: 15px;
        text-decoration: none;
        border-radius: 8px;
        overflow: hidden;
        transition: transform 0.3s ease;
    }
    
    .nm-ad-item:hover {
        transform: scale(1.02);
        text-decoration: none;
    }
    
    .nm-ad-item:last-child {
        margin-bottom: 0;
    }
    
    .nm-ad-image {
        width: 100%;
        height: 200px;
        object-fit: fill;
        border-radius: 6px;
    }
    
    /* Most Viewed Section */
    .nm-most-viewed {
        background: rgb(252, 246, 246);
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .nm-most-viewed-title {
        background: rgb(240, 39, 69);
        color: white;
        padding: 15px;
        font-size: 18px;
        /* font-weight: bold; */
        margin: 0;
    }
    
    .nm-most-viewed-content {
        padding: 15px;
    }
    
    .nm-viewed-item {
        display: flex;
        align-items: flex-start;
        padding: 12px 0;
        border-bottom: 1px solid rgba(240, 39, 69, 0.2);
        text-decoration: none;
        color: inherit;
        transition: background-color 0.3s ease;
    }
    
    .nm-viewed-item:hover {
        background-color: rgba(240, 39, 69, 0.05);
        text-decoration: none;
        color: inherit;
    }
    
    .nm-viewed-item:last-child {
        border-bottom: none;
    }
    
    .nm-viewed-image {
        width: 60px;
        height: 60px;
        border-radius: 8px;
        object-fit: fill;
        margin-right: 12px;
        flex-shrink: 0;
    }
    
    .nm-viewed-info {
        flex: 1;
    }
    
    .nm-viewed-title {
        /* font-weight: bold; */
        font-size: 16px;
        margin-bottom: 5px;
        color: #030303;
        line-height: 1.3;
    }
    
 
    
    /* Comment Section (for future use) */
    .nm-comments-section {
        padding: 20px;
        border-top: 1px solid #eee;
        background: #fff;
    }
    
    .nm-comments-title {
        font-size: 22px;
        font-weight: bold;
        margin-bottom: 20px;
        color: #333;
        border-bottom: 2px solid #f03c02;
        padding-bottom: 10px;
    }
    
    .nm-login-prompt {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 20px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .nm-login-btn {
        background: #f03c02;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        text-decoration: none;
        font-weight: 500;
        transition: background-color 0.3s ease;
    }
    
    .nm-login-btn:hover {
        background: #d63384;
        text-decoration: none;
        color: white;
    }
    
    .nm-comment-form {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 20px;
    }
    
    .nm-comment-textarea {
        width: 100%;
        min-height: 100px;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 5px;
        resize: vertical;
        font-family: inherit;
    }
    
    .nm-comment-submit {
        background: #f03c02;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        margin-top: 10px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    
    .nm-comment-submit:hover {
        background: #d63384;
    }
    
    .nm-comment-item {
        background: white;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .nm-comment-header {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        gap: 10px;
    }
    
    .nm-comment-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #f03c02;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
    }
    
    .nm-comment-author {
        font-weight: bold;
        color: #333;
    }
    
    .nm-comment-date {
        color: #666;
        font-size: 12px;
    }
    
    .nm-comment-text {
        color: #555;
        line-height: 1.5;
    }
    
    /* Link Styles */
    .nm-link {
        color: inherit;
        text-decoration: none;
    }
    
    .nm-link:hover {
        color: #f03c02;
        text-decoration: none;
    }
    
    /* Responsive Design */
    @media (max-width: 1024px) {
        .nm-slider-item {
            min-width: calc(50% - 7.5px);
            flex: 0 0 calc(50% - 7.5px);
        }
    }
    
    @media (max-width: 768px) {
        .nm-container {
            flex-direction: column;
            gap: 15px;
            margin: 15px auto;
            padding: 0 10px;
        }
        
        .nm-main-content,
        .nm-sidebar {
            flex: 1;
        }
        
        .nm-news-article {
            padding: 15px;
        }
        
        .nm-headline {
            font-size: 18px;
        }
        
        .nm-news-image {
            height: 250px;
        }
        
        .nm-navigation {
            padding: 15px;
        }
        
        .nm-slider-item {
            min-width: calc(100% - 0px);
            flex: 0 0 calc(100% - 0px);
        }
        
        .nm-ad-image {
            height: 150px;
        }
    }
    
    @media (max-width: 480px) {
        .nm-headline {
            font-size: 16px;
        }
        
        .nm-news-image {
            height: 200px;
        }
        
        .nm-slider-item {
            min-width: 220px;
        }
        
        .nm-navigation {
            flex-direction: column;
        }
        
        .nm-nav-btn {
            text-align: center;
        }
    }

 /* Footer Styles */
footer {
    background-color: #2b2320;
    color: #fff;
    padding: 10px 0; /* Reduced padding for more compact footer */
}

footer .container {
    max-width: 1200px;
    padding: 0 15px;
}

footer .row {
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

footer .col-lg-2, footer .col-md-6 {
    padding: 5px 15px; /* Reduced padding for more compact layout */
    margin-bottom: 0;
}

footer h4 {
    color: #fff;
    font-weight: 600;
}

footer .anc a {
    color: #f03c02;
    text-decoration: none;
}

footer .anc a:hover {
    text-decoration: underline;
}

/* Ensure the scroll-top button is positioned correctly */
#scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #f03c02;
    color: white;
    border-radius: 20%;
    padding: 10px;
    font-size: 20px;
    display: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000; /* Ensure it's on top of other content */
}

#scroll-top:hover {
    background-color: #d63384;
}

/* Center footer sections */
footer .copyright {
    padding: 5px 0; /* Reduced padding */
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    text-align: center;
}

footer .copyright p {
    margin: 0;
}

footer .copyright .ms-5 {
    margin-left: 0;
}

/* Footer Responsiveness */
@media (max-width: 1200px) {
    footer .col-lg-2 {
        flex: 1 1 100%;
    }
    
    footer .col-lg-4 {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    footer .small-news-slider .card img {
        width: 40px; /* Smaller images for mobile */
        height: 40px;
    }

    footer .col-md-6 {
        padding: 0 15px;
    }

    footer .col-lg-2, footer .col-lg-4 {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }

    footer .small-news-slider {
        height: auto;
        overflow: visible;
    }
}

@media (max-width: 480px) {
    footer .copyright {
        flex-direction: column; /* Stack the items vertically on smaller screens */
        margin-top: 10px;
    }

    footer .small-news-slider .card img {
        height: 35px;
        width: 35px;
    }
}

    /* Categories Page */

    /* Categories Page Specific Styles */
.nm-categories-section {
  padding: 2rem 0;
  background: linear-gradient(135deg, var(--news-light) 0%, #ffffff 100%);
  min-height: 60vh;
}

.nm-section-heading {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.nm-section-heading h2 {
  font-size: 2.5rem;
  color: var(--news-secondary);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.nm-section-heading h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--news-primary);
  border-radius: 2px;
}

.nm-categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Enhanced Service Item - Now fully clickable */
.nm-service-item {
  flex: 0 1 calc(25% - 1.5rem);
  min-width: 280px;
  max-width: 320px;
  margin: 0;
  text-align: center;
  background: white;
  border: 1px solid var(--news-border);
  border-radius: 15px;
  padding: 0;
  box-shadow: 0 5px 15px var(--news-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.nm-service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--news-primary);
  text-decoration: none;
  color: inherit;
}

.nm-service-item:focus {
  outline: 2px solid var(--news-primary);
  outline-offset: 2px;
  text-decoration: none;
}

.nm-service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--news-primary), #ff6b35);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nm-service-item:hover::before {
  transform: scaleX(1);
}

.nm-image-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.nm-image-container img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.3s ease;
}

.nm-service-item:hover .nm-image-container img {
  transform: scale(1.1);
}

.nm-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nm-service-item:hover .nm-image-overlay {
  opacity: 1;
}

.nm-content-area {
  padding: 1.5rem;
}

.nm-news-title {
  color: var(--news-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

/* Remove separate link styling since the whole card is now clickable */
.nm-news-link {
  color: inherit;
  text-decoration: none;
  pointer-events: none; /* Prevent double-click handling */
}

.nm-service-item:hover .nm-news-title {
  color: var(--news-primary);
}

/* Category Badge */
.nm-category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(240, 60, 2, 0.9);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 2;
  backdrop-filter: blur(10px);
  pointer-events: none; /* Prevent interference with card click */
}

/* Read More Button - Now just visual indicator */
.nm-read-more {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: var(--news-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  text-decoration: none;
  pointer-events: none; /* Prevent interference with card click */
}

.nm-service-item:hover .nm-read-more {
  opacity: 1;
  transform: translateY(0);
}

.nm-read-more:hover {
  background: #d63384;
  color: white;
  text-decoration: none;
}

/* Loading Animation */
.nm-loading {
  position: relative;
  overflow: hidden;
}

.nm-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: nmLoading 1.5s infinite;
}

@keyframes nmLoading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Meta Information */
.nm-meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--news-border);
  font-size: 0.85rem;
  color: var(--news-muted);
  pointer-events: none; /* Prevent interference with card click */
}

.nm-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nm-views {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Empty State */
.nm-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--news-muted);
}

.nm-empty-state h3 {
  color: var(--news-secondary);
  margin-bottom: 1rem;
}

.nm-empty-state p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.nm-back-btn {
  background: var(--news-primary);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nm-back-btn:hover {
  background: #d63384;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(240, 60, 2, 0.3);
  color: white;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .nm-service-item {
    flex: 0 1 calc(33.333% - 1.5rem);
    min-width: 250px;
  }
}

@media (max-width: 992px) {
  .nm-service-item {
    flex: 0 1 calc(50% - 1.5rem);
    min-width: 280px;
  }
  
  .nm-section-heading h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .nm-categories-section {
    padding: 2rem 0;
  }
  
  .nm-service-item {
    flex: 0 1 100%;
    min-width: auto;
    max-width: 400px;
  }
  
  .nm-section-heading h2 {
    font-size: 1.8rem;
  }
  
  .nm-categories-grid {
    gap: 1rem;
  }
  
  .nm-image-container {
    height: 180px;
  }
  
  .nm-content-area {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .nm-section-heading h2 {
    font-size: 1.5rem;
  }
  
  .nm-service-item {
    min-width: auto;
    max-width: none;
  }
  
  .nm-image-container {
    height: 160px;
  }
  
  .nm-meta-info {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Animation Classes */
@keyframes nmFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nm-animate-fadeInUp {
  animation: nmFadeInUp 0.6s ease-out;
}

/* Category Count Badge */
.nm-category-count {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 2;
  pointer-events: none; /* Prevent interference with card click */
}

/* Accessibility Improvements */
.nm-service-item:focus-within {
  outline: 2px solid var(--news-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .nm-service-item {
    border: 2px solid var(--news-secondary);
  }
  
  .nm-service-item:hover {
    border-color: var(--news-primary);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .nm-service-item,
  .nm-image-container img,
  .nm-read-more {
    transition: none;
  }
  
  .nm-service-item:hover {
    transform: none;
  }
  
  .nm-service-item:hover .nm-image-container img {
    transform: none;
  }
}
/* Make the entire news card clickable */
.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.news-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    text-decoration: none;
}

/* Enhanced box styling for clickable cards */
.box.shadow-effect {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    padding: 0;
    border: 1px solid #e9ecef;
}

/* Image styling */
.news-image {
    transition: transform 0.3s ease;
    height: 200px;
    object-fit: fill;
}

.news-card-link:hover .news-image {
    transform: scale(1.05);
}

/* Title styling */
.news-title {
    padding: 15px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    transition: color 0.3s ease;
}

.news-card-link:hover .news-title {
    color: #ff002f;
}

/* Enhanced shadow effect */
.shadow-effect {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-card-link:hover .shadow-effect {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-image {
        height: 150px;
    }
    
    .news-title {
        font-size: 1rem;
        padding: 12px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .news-card-link,
    .news-image,
    .news-title {
        transition: none;
    }
    
    .news-card-link:hover {
        transform: none;
    }
    
    .news-card-link:hover .news-image {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .box.shadow-effect {
        border: 2px solid #000;
    }
    
    .news-card-link:hover .box.shadow-effect {
        border-color: #007bff;
    }
}
/* ---- Large slider arrows ---- */
.large-news-slider .slick-prev,
.large-news-slider .slick-next{
  position:absolute; top:50%; transform:translateY(-50%);
  z-index:5; width:38px; height:38px; border:0; border-radius:50%;
  background:rgba(0,0,0,.55); color:#fff; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,.25); cursor:pointer;
}
.large-news-slider .slick-prev{ left:10px; }
.large-news-slider .slick-next{ right:10px; }
.large-news-slider .slick-prev:hover,
.large-news-slider .slick-next:hover{ background:rgba(0,0,0,.75); }

/* optional: nicer dots */
.large-news-slider .slick-dots{ bottom:10px; }
.large-news-slider .slick-dots li button:before{
  font-size:10px; color:#fff; opacity:.5;
}
.large-news-slider .slick-dots li.slick-active button:before{
  opacity:1; color:#fff;
}

/* ---- Small vertical slider: 4 items exactly ---- */
/* Give the track a fixed height so 4 items fit perfectly */
.small-news-slider{
  overflow:hidden;
}
.small-news-slider .slick-list{
  /* 4 * item height (88px) + 3 * gap (8px) = 356px */
  height:356px !important;
}
/* Each slide (no external margins) */
.small-news-slide{
  height:88px; /* consistent height per item */
  padding:0;   /* no external margins that cause clipping */
}
/* Inner card layout */
.small-news-card{
  height:100%; border:0; border-radius:.5rem;
  box-shadow:0 2px 12px rgba(0,0,0,.08);
  overflow:hidden; background:#fff;
  display:flex; align-items:center;
}
/* Image sizing */
.small-news-card img{
  width:140px; height:88px; object-fit:cover; flex:0 0 140px;
}
/* Text styling */
.small-news-card .card-body{
  padding:.5rem .75rem; display:flex; align-items:center;
}
.small-news-card .card-title{
  font-size:.82rem; line-height:1.2; font-weight:600; margin:0;
  color:#111;
}

/* Optional: small gap between slides – emulate with track padding */
.small-news-slider .slick-track{
  display:block;
}
.small-news-slider .small-news-slide + .small-news-slide{
  margin-top:8px; /* creates the vertical gap without breaking slide height */
}
