/*
Theme Name: WR_News
Theme URI: http://localhost/
Author: Webrazvoj
Author URI: http://webrazvoj.eu
Description: News portal theme based on Newspaper Magazine PRO layout (homepage up to Travel guides), using Bootstrap.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wr_news
*/

body {
    background-color: #ffffff;
}

body * {
    border-radius: 0!important;
}

/* Global wrapper for site width */
.main_wrapp {
    max-width: 1160px;
    margin: 0 auto;
}

.g-single a {
    display: block;
    text-align: center;
}

/********************
****** HEADER *******
*********************/

.wr-top-header {
    font-size: 11px;
    line-height: 1.4;
}

.wr-top-header .container {
    padding-top: 6px;
    padding-bottom: 6px;
}

.wr-top-header a {
    text-decoration: none;
    font-weight: 500;
}

.wr-top-header .nav {
    gap: 1.25rem;
}

.wr-top-header .nav a {
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.top_social_wrapp a {
    margin-left: 10px;
}

.top_social_wrapp i {
    font-size: 21px;
}

.top_social_wrapp a:hover i {
    color: #a9241b;
}

.wr-main-nav {
    border-bottom: 0;
}

.wr-main-nav {
    padding: 0;
}

.wr-main-nav {
    border-bottom: 3px solid #e0e0e0;
}

/* Logo + ad row */
.wr-header-main {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

.top_logo {
    max-height: 90px;
    width: auto;
}

/* Main navigation bar */
.wr-main-nav .navbar-nav .nav-link {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.wr-main-nav .navbar-nav .nav-item {
    margin-right: 0.25rem;
}

.wr-main-nav .navbar-nav .nav-link:hover,
.wr-main-nav .navbar-nav .current-menu-item > a,
.wr-main-nav .navbar-nav .current-menu-ancestor > a {
    text-decoration: none;
}

.menu-item-has-children {
    position: relative;
}

ul#menu-main a {
    position: relative;
    display: inline-block;
    padding: 0 14px;
    font-weight: 400;
    font-size: 14px;
    line-height: 48px;
    vertical-align: middle;
    color: #fff;
    font-family: var(--td_default_google_font_1);
    text-decoration: none;
    letter-spacing: .4px;
}

ul#menu-main li.vise_link > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

ul#menu-main li.vise_link > a::before {
    content: "\f067";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    line-height: 1;
}

ul#menu-main li.vise_link > a::after {
    content: "\f0d7";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 2px;
    line-height: 1;
}

ul#menu-main ul.sub-menu.show a {
    color: #fff;
    display: block;
}

.wr-main-nav .sub-menu {
    list-style-type: none;
    background-color: #194e32!important;
}

#menu-main .current-menu-item,
#menu-main li:hover {
    background-color: #a9241b;
}

ul#menu-main ul.sub-menu.show li:hover a {
    color: #fff;
}

.wr-main-nav .wr-nav-icon {
    display: inline-block!important;
}

img.wr-nav-cat-icon {
    height: 25px !important;
    width: 25px !important;
}

.wr-nav-search {
    position: relative;
}

.wr-nav-search__toggle {
    color: #fff;
    font-size: 18px;
}

.wr-nav-search__toggle:hover,
.wr-nav-search__toggle:focus {
    color: #f1f1f1;
    text-decoration: none;
}

.wr-nav-search__panel {
    position: absolute;
    right: 0;
    top: 110%;
    width: min(280px, 80vw);
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
}

.wr-nav-search__panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wr-nav-search__form .form-control {
    margin-bottom: 0.5rem;
}

.wr-nav-search__form .btn {
    width: 100%;
}

input#wrNavSearchInput:focus,
input#wrNavSearchInput {
    outline: none;
    box-shadow: none;
    border-color: #194e32;
}

form.wr-nav-search__form .btn.btn-primary {
    background-color: #194e32;
    border-color: #194e32;
}

@media (max-width: 991.98px) {
    .wr-nav-search {
        width: 100%;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .wr-nav-search__panel {
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
        background: transparent;
    }

    .wr-nav-search__form .form-control {
        margin-bottom: 0.5rem;
    }

    .wr-nav-search__form .btn {
        width: auto;
    }
}

/********************
*** HOME TRENDING ***
*********************/

.wrns-layout-trending .wrns-trending-track {
    overflow: hidden;
    white-space: nowrap;
    font-size: 13px;
}

.wrns-layout-trending .wrns-trending-item {
    display: none;
    padding-left: 1.25rem;
}

.wrns-layout-trending .wrns-trending-item.is-active {
    display: inline-block;
}

.wrns-trending-track a {
    font-weight: 600;
    font-size: 13px;
}

.wrns-layout-trending .badge.bg-teal {
    border-radius: 0;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.wrns-layout-trending .wrns-trending-nav .btn {
    border-radius: 0;
    padding: 0.3rem 0.6rem;
    font-size: 11px;
}

/********************
***** HOME GRID *****
*********************/

.no_title > div.d-flex {
    display: none!important;
}

.badge.bg-teal {
    border-radius: 0;
}

.all_link {
    min-width: 33px;
    color: #000;
    font-weight: 600;
    margin-top: 7px;
}

a.small.text-decoration-none > span {
    display: none;
}

a.small.text-decoration-none {
    min-width: 90px;
    color: #000;
    font-weight: 600;
    margin-top: 7px;
}

.wrns-layout-two-col a.small.text-decoration-none {
    margin-top: 2px;
}

.blog a.small.text-decoration-none {
    margin-top: 11px;
}

section.wrns-section.wrns-layout-hero-grid > div.row.g-3 > div:nth-child(2),
section.wrns-section.wrns-layout-hero-grid > div.row.g-3 > div:nth-child(3) {
    margin-top: 0;
}

p.social_share_title {
    margin-bottom: 0;
    margin-top: 10px;
    font-weight: 600;
}

/********************
**** TRAVEL GRID ****
*********************/

.wrns-section .border-bottom {
    border-width: 3px!important;
    width: 100%;
}

.wrns-section .small.text-uppercase a {
    text-decoration: none;
    color: #000;
}

article.wrns-two-col-hero,
article.wrns-two-col-item,
article.wrns-list-row {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.breadcrumbs {
    font-size: 0.875rem;
    line-height: 1.4;
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .mx-1 {
    color: #6c757d;
}

.category_link a {
    text-decoration: none;
    color: #000
}

@media (min-width: 992px) {
    .wrns-sticky-sidebar {
        position: sticky;
        top: 20px;
    }
}

/* Hero + grid layout adjustments */
@media (min-width: 768px) {
    /* Slightly smaller gaps inside hero grid section */
    .wrns-layout-hero-grid .row.g-3 {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }

    /* Use consistent aspect ratio so all cards have equal height */
    article.wrns-grid-hero {
        aspect-ratio: 16 / 9;
    }

    article.wrns-grid-item {
        aspect-ratio: 16 / 9;
    }
}

/* Ensure hero-grid cards behave like background tiles */
article.wrns-grid-hero,
article.wrns-grid-item {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
}

article.wrns-grid-hero:before,
article.wrns-grid-item:before {
    content: '';
    background: -webkit-linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .2) 35%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0));
    background: linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .2) 35%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0));
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transition: background-color .3s;
    transition: background-color .3s ease;
    z-index: 1;
}

article.wrns-grid-hero .position-absolute,
article.wrns-grid-item .position-absolute {
    z-index: 2;
}

article.wrns-grid-hero .position-absolute,
article.wrns-grid-hero .position-absolute *,
article.wrns-grid-item .position-absolute,
article.wrns-grid-item .position-absolute * {
    color: #fff !important;
}

article.wrns-grid-hero .position-absolute a,
article.wrns-grid-item .position-absolute a {
    text-decoration: none;
}

/********************
******** ADS ********
*********************/

.g img {
    height: auto;
    max-width: 100%;
}

/********************
* HERO LIST & SIDEBAR ***
*********************/

section.wrns-social-counters {
    padding-top: 30px;
}

.wrns-layout-hero-list .wrns-hero .card-body {
    padding-left: 0;
    padding-right: 0;
}

.wrns-layout-hero-list .wrns-hero .card-body .small {
    letter-spacing: 0.06em;
}

.wrns-layout-hero-list .wrns-list-item {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.wrns-layout-hero-list .wrns-list-item:last-child {
    border-bottom: none;
}

.wrns-layout-hero-list .wrns-list-item h3 {
    font-size: 0.95rem;
}

.wrns-layout-hero-list .wrns-list-item .text-muted.small {
    font-size: 0.78rem;
}

/* Small thumbnails in lists – no border radius */
.wrns-layout-hero-list .wrns-list-item img,
.wrns-layout-list .wrns-list-row img {
    border-radius: 0 !important;
}

/* Social counters sidebar cards */
.wrns-social-counters .wrns-social-counter-card {
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wrns-social-counters .wrns-social-counter-card .wrns-social-icon i {
    font-size: 1.4rem;
}

.wrns-social-counters .wrns-social-counter-card:hover {
    background-color: rgba(0,0,0,0.02);
}

/********************
****** SINGLE ********
*********************/

.post_nav.prev_nav a,
.post_nav.next_nav a {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    max-width: 300px;
    display: block;
}

.author_more_link {
    color: #000;
}

.page-numbers {
    text-decoration: none;
    color: #000;
    border: 1px solid #194e32;
    padding: 6px 12px;
}

span.page-numbers {
    background-color: #194e32;;
    color: #fff;
}

.page-numbers:hover {
    background-color: #194e32;;
    color: #fff;
    border: 1px solid #194e32;
    padding: 6px 12px;
}

.g.g-12 a {
    /*max-width: 350px;*/
    /*display: block;*/
    margin: 0 auto;
}

.post-tags a {
    text-decoration: none;
    background-color: #194e32;
    color: #fff;
    padding: 5px 10px;
    display: inline-block;
}

.post-tags a:hover {
    background-color: #a9241b;
    color: #fff;
}

.archive a.small.text-decoration-none {
    margin-top: 11px;
}

.wrns-section h2 {
    font-size: 18px;
}

/********************
***** FOOTER ********
*********************/

.footer_link {
    text-decoration: none;
    color: #fff;
}

footer ul {
    list-style-type: none;
}

footer.bg-dark .widget,
footer.bg-dark .widget p,
footer.bg-dark .widget li,
footer.bg-dark .widget span {
    color: #fff;
}

footer.bg-dark .widget a {
    color: #fff;
}

footer.bg-dark .widget a:hover {
    color: #f1f1f1;
}

footer section, footer section p {
    margin-bottom: 0;
}

.gallery-columns-3 {
    column-count: 3;
}

/*********************** 
	LAPTOP STYLE 
***********************/

@media (max-width: 1100px) {
	.wr-main-nav {
        border-bottom: 3px solid #194e32;
        background-color: #fff!important;
    }

    button.navbar-toggler:focus, button.navbar-toggler {
        outline: none;
        box-shadow: none;
        border-color: #194e32;
    }

    ul#menu-main {
        background-color: #194e32;
    }
}

/*********************** 
	TABLET STYLE 
***********************/

@media (max-width: 699.98px) {
    article.wrns-grid-hero,
    article.wrns-grid-item {
        min-height: 360px;
    }

    .wrns-layout-trending .wrns-trending-item {
        padding-left: 0;
        overflow: hidden;
        max-width: 160px;
    }

    section.wrns-social-counters {
        padding-top: 0px;
    }

    .home :where(.wp-block-columns.is-layout-flex) {
        gap: 0em;
    }
}

@media (min-width: 700px) and (max-width: 991.98px) {
    article.wrns-grid-hero,
    article.wrns-grid-item {
        min-height: 0;
    }

    section.wrns-section.wrns-layout-hero-grid > div.row.g-3 > div.col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/*********************** 
	MOBILE STYLE 
***********************/

@media (max-width: 767.98px) {
    .date_wrapp {
        display: none;
    }

    footer ul {
        padding: 0;
    }
}

/*********************** 
	SMALL STYLE 
***********************/

@media(max-width: 500px) {
    section.wrns-section.wrns-layout-trending.mb-4 > div > div.gap-2,
    section.wrns-section.wrns-layout-trending.mb-4 > div {
        flex-direction: column;
    }
}