/*
Theme Name: Janata Jagaran
Theme URI: https://janatajagaran.com/
Author: ProTech Nepal
Author URI: https://protech.org.np/
Description: news portal powerfull custom theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-theme
*/

/* Add your theme styles below this line */
body {
    font-family: Arial, sans-serif;
}



/* trending layout title */
/* Ensure tabs are displayed in one horizontal line on mobile devices */
@media (max-width: 767px) {
    .nav-tabs.nav-justified > li {
        display: inline-block;
        float: none;
    }
    .nav-tabs.nav-justified > li > a {
        display: inline-block;
        color: black; /* Set text color to black */
        text-align: center; /* Center align text */
        background-color: #f8f8f8; /* Set background color */
        padding: 10px; /* Add padding for better spacing */
        border-radius: 4px; /* Optional: Add border radius for rounded corners */
        width: 100%; /* Ensure the tab covers the full width */
        box-sizing: border-box; /* Include padding and border in the element's total width and height */
    }
    .nav-tabs.nav-justified {
        display: flex;
        justify-content: space-around;
        align-items: center; /* Center align items vertically */
        background-color: #f8f8f8; /* Set background color for the tab container */
        padding: 10px; /* Add padding for the tab container */
        border-radius: 4px; /* Optional: Add border radius for rounded corners */
        width: 100%; /* Ensure the container covers the full width */
        box-sizing: border-box; /* Include padding and border in the element's total width and height */
    }
}


/* new category module */

/* pagination */

/* Pagination Styles */
.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 10px 15px;
    color: #333;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.pagination .page-numbers:hover {
    background-color: #007bff;
    color: #fff;
}

.pagination .current {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination .prev.page-numbers,
.pagination .next.page-numbers {
    font-weight: bold;
}




/* new news card */

/* Container and Row */
.custom2-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.custom2-row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.custom2-col-12, .custom2-col-md-5, .custom2-col-md-4 {
    padding: 15px;
    box-sizing: border-box;
}

.custom2-col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.custom2-col-md-5 {
    flex: 0 0 41.66%;
    max-width: 41.66%;
}

.custom2-col-md-4 {
    flex: 0 0 33.33%;
    max-width: 33.33%;
}

@media (max-width: 768px) {
    .custom2-col-md-5, .custom2-col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Main News Card */
.custom2-main-news-card {
    background-color: #1a1a1a;
    color: white;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 97%;
}

.custom2-main-thumb-wrapper {
    overflow: hidden;
    height: 300px;
    width: 100%;
    position: relative;
}

.custom2-main-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.custom2-main-thumb-wrapper:hover img {
    transform: translate(-50%, -50%) scale(1.1);
}

.custom2-main-content-wrapper {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.custom2-main-content-wrapper h2 {
    margin: 0 0 10px;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.3em;
}

.custom2-main-content-wrapper h2 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.custom2-main-content-wrapper h2 a:hover {
    color: #ddd;
}

.custom2-main-excerpt {
    margin: 0;
    color: #ddd;
}

/* Secondary News Cards */
.custom2-secondary-news-list {
    display: flex;
    flex-direction: column;
}

.custom2-secondary-news-card {
    display: flex;
    margin-bottom: 15px;
    background-color: #f1f1f1;
    border-radius: 5px;
    overflow: hidden;
    align-items: center;
}

.custom2-secondary-thumb-wrapper {
    width: 100px; /* Set a consistent width for the thumbnails */
    overflow: hidden;
    height: 75px; /* Set a consistent height for the thumbnails */
    position: relative;
    flex-shrink: 0; /* Prevent the wrapper from shrinking */
}

.custom2-secondary-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.custom2-secondary-thumb-wrapper:hover img {
    transform: scale(1.1);
}

.custom2-secondary-content-wrapper {
    padding: 10px;
    flex-grow: 1;
}

.custom2-secondary-content-wrapper h3 {
    margin: 0;
    font-size: 17px; /* Set the font size of secondary titles to 17px */
    font-weight: bold;
}

.custom2-secondary-content-wrapper h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.custom2-secondary-content-wrapper h3 a:hover {
    color: #007BFF;
}


/* entertainment news card */

/* photo card */

/* Card container with equal height */
.protech-feature-card {
    position: relative;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
    border-radius: 8px; /* Slightly rounded corners */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Ensures consistent height for all cards */
}

/* Image wrapper with overlay */
.protech-img-overlay {
    position: relative;
    height: 250px; /* Fixed height for image area */
    overflow: hidden;
}

.protech-feature-img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* Overlay label with icon */
.protech-img-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 0, 0, 0.7); /* Red label with transparency */
    padding: 10px;
    border-radius: 50%;
}

.protech-icon {
    width: 24px;
    height: 24px;
}

/* Content area */
.protech-feature-content {
    padding: 15px;
    text-align: center;
}

.protech-feature-title {
    font-size: 15px;
    margin: 0;
    line-height: 1.4;
    font-weight: bold;
    color: #000;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .protech-img-overlay {
        height: 200px; /* Reduced height for images on smaller screens */
    }
    .protech-feature-title {
        font-size: 1rem;
    }
}

/* Flexbox for equal height across cards */
.d-flex {
    display: flex !important;
}

.align-items-stretch {
    align-items: stretch !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}



/* sidebar adds */


  /* ads */
  .posts__banner__ads, .banner__ads {  text-align: center;  }
.posts__banner__ads img, .banner__ads img { margin-bottom: 20px; }
.sidebar__ads img {  margin-bottom: 15px; width: 100%; }

/* sidebar ads */

@media (max-width: 639px) {
    .sidebar__ads {
        display: block !important; /* Ensure the sidebar ads are displayed */
        width: 100%; /* Make sure it takes full width */
        margin: 0 auto; /* Center it if necessary */
    }

    .sidebar__ads img,
    .sidebar__ads iframe {
        width: 100%; /* Ensure the ad content takes full width */
        height: auto; /* Maintain aspect ratio */
        display: block; /* Remove any inline-block or other display settings */
    }
}

/* new header category center */

.protech-header-container {
    display: flex;
    align-items: center;
    padding: 0px;
    padding-bottom: 10px;
}

.protech-header-box {
    background-color: #0463c4; /* Red color */
    padding: 5px 20px;
    color: #fff;
    font-size: 30px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    font-family: 'Khand', sans-serif;
}

.protech-line {
    flex: 1;
    height: 1px;
    background-color: #E0E0E0;
    margin-left: 10px;
}

.protech-header-box a {
    color: white;
    text-decoration: none;
}

.protech-header-box a:hover {
    
    color: yellow !important; /* Use !important to ensure this rule is applied */
}

/* header category at left */

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    padding-bottom: 10px;
}

.header-box {
    background-color: #0463c4; /* Red color */
    padding: 4px 20px;
    color: white;
    font-size: 30px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    font-family: 'Khand', sans-serif;
}

.protech-line1 {
    flex: 1;
    height: 1px;
    background-color: #E0E0E0;
    margin: 0 10px;
}


.header-box a {
    color: white;
    text-decoration: none;
}

.protech-header-box a:hover {
    
    color: yellow !important; /* Use !important to ensure this rule is applied */
}


/* trending css */



.trend_nav {
    background-color: #f5f5f5;
    padding: 2px 0;
    border-bottom: 1px solid #e0e0e0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.jeg_nav_row {
    display: flex;
    align-items: center;
}

.trandingnav {
    display: flex;
    align-items: center;
}

.title__label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    background-color: #e0e3e6; /* Light grey background */
    padding: 10px 15px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    margin-right: 20px;
}

.hastag {
    display: flex;
    flex-wrap: wrap; /* Makes the tags wrap to the next line if they don't fit */
    gap: 10px; /* Space between each tag */
}

.hastag a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 15px;
    border: 1px solid #d0d0d0;
    border-radius: 20px; /* Rounded corners */
    background-color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hastag a:hover {
    color: #fff; /* Hover text color */
    border-color: #d32f2f; /* Hover border color */
}


/* online tv */

.about-us {
    display: flex;
    justify-content: center; /* Center-aligns content horizontally */
    align-items: center; /* Center-aligns content vertically */
    text-align: center; /* Center-aligns text within the content */
    height: 100%; /* Ensure the div takes the full height of its container */
}

/* footer */
.protech--footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #003893; /* Matches the blue background */
    padding: 10px 20px;
    font-family: Arial, sans-serif;
    color: white;
  }
  
  .protech--copyright {
    font-size: 14px;
  }
  
  .protech--branding {
    font-size: 14px;
  }
  
  .protech--branding strong {
    font-weight: bold;
  }
  
  .protech--footer span {
    display: inline-block;
  }
  
  .protech--branding strong {
    color: white;
  }
  
  .protech--branding strong:first-of-type {
    font-family: sans-serif; /* Adjust font for snowberry */
  }
  
  .protech--branding strong:last-of-type {
    font-family: sans-serif; /* Adjust font for PRIXA */
  }
  