/*
Theme Name: Życie Seniora V2
Theme URI: http://zycieseniora.com
Template: Newspaper12
Author: tagDiv
Author URI: https://themeforest.net/user/tagDiv/portfolio
Description: Motyw potomny dla Newspaper 12 - Życie Seniora V2.
Tags: black, white, one-column, two-columns, fixed-layout
Version: 2.0.0
*/

/* ============================================================
   STOPKA - OBSZAR GŁÓWNY
   ============================================================ */

.td-footer-wrapper {
    background-color: #f2f2f2;
    padding: 40px 0 30px;
    color: #444;
    border-top: 1px solid #e0e0e0;
}

/* Tytuły widgetów w stopce */
.td-footer-wrapper .block-title {
    margin-bottom: 18px;
    padding-bottom: 0;
    border: none;
}

.td-footer-wrapper .block-title span {
    background: none;
    color: #af123f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0;
    border-bottom: 2px solid #af123f;
    padding-bottom: 6px;
    display: inline-block;
}

/* Widget "Życie Seniora" - tekst */
.td-footer-wrapper .widget_text h1,
.td-footer-wrapper .widget_text h2,
.td-footer-wrapper .widget_text h3 {
    color: #333;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    margin-top: 0;
}

/* Widget text ogólny */
.td-footer-wrapper .widget_text .textwidget {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

/* Ikona Facebook w stopce - okrągły niebieski przycisk */
.td-footer-wrapper .custom_social_icon {
    list-style: none;
    padding: 0;
    margin: 12px 0 18px;
    overflow: hidden;
}
.custom_social_icon li a i {
    box-shadow: none !important;
}
i.fa.fa-facebook {
    background: none !important;
    margin-right: 0;
    margin-top: 4px;
}
.td-footer-wrapper .custom_social_icon li {
    display: inline-block;
    margin: 0;
}

.td-footer-wrapper .custom_social_icon a,
.td-footer-wrapper .zs-fb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #3b5998;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    box-shadow: none !important;
    transition: background-color 0.2s;
}

.td-footer-wrapper .custom_social_icon a:hover,
.td-footer-wrapper .zs-fb-btn:hover {
    background-color: #2d4373;
    color: #fff;
}

/* Tabela kontaktowa w stopce */
.td-footer-wrapper .footer-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 8px;
}

.td-footer-wrapper .footer-table tr {
    margin-bottom: 12px;
}

.td-footer-wrapper .footer-table td {
    padding: 7px 8px 7px 0;
    vertical-align: middle;
    font-size: 14px;
    color: #444;
    border: none;
}

.td-footer-wrapper .footer-table td:first-child {
    width: 40px;
    text-align: center;
}

.td-footer-wrapper .footer-table td img {
    max-width: 32px;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-left: 5px;
}

.tdb-template .td-main-content-wrap {
    margin-top: 2px;
}

.td-sub-footer-container.td-container-wrap {
    background: #e7e7e7 !important;
}

.td-footer-wrapper .footer-table a {
    color: #af123f;
    text-decoration: none;
}

.td-footer-wrapper .footer-table a:hover {
    text-decoration: underline;
}

/* ============================================================
   STOPKA - WIDGET BIULETYNU (NEWSLETTER)
   ============================================================ */

.td-footer-wrapper #td-footer-3 .widget,
.td-footer-wrapper #td-footer-3 aside.widget {
    background-color: #fff;
    border: 1px solid #cccccc;
    padding: 22px 20px;
}

/* Tytuł widgetu newsletter */
.td-footer-wrapper #td-footer-3 .block-title {
    margin-bottom: 10px;
}

.td-footer-wrapper #td-footer-3 .block-title span {
    color: #af123f;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: none;
    padding-bottom: 0;
}

/* Tekst opisu newslettera */
.td-footer-wrapper #td-footer-3 .textwidget > span,
.td-footer-wrapper #td-footer-3 .textwidget p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    display: block;
    margin-bottom: 16px;
}

/* Iframe salesmanago */
.td-footer-wrapper #td-footer-3 iframe#salesmanagoIframe {
    border: none !important;
    width: 100% !important;
}

/* Generyczny styl formularza w widgecie newsletter (CF7 lub inne) */
.td-footer-wrapper #td-footer-3 input[type="email"],
.td-footer-wrapper #td-footer-3 input[type="text"] {
    width: 100%;
    border: 1px solid #cccccc;
    padding: 12px 14px;
    font-size: 13px;
    color: #444;
    background: #fff;
    box-sizing: border-box;
    margin-bottom: 10px;
    outline: none;
}

.td-footer-wrapper #td-footer-3 input[type="email"]::placeholder,
.td-footer-wrapper #td-footer-3 input[type="text"]::placeholder {
    color: #999;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.td-footer-wrapper #td-footer-3 input[type="submit"],
.td-footer-wrapper #td-footer-3 button[type="submit"] {
    width: 100%;
    background-color: #af123f;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.td-footer-wrapper #td-footer-3 input[type="submit"]:hover,
.td-footer-wrapper #td-footer-3 button[type="submit"]:hover {
    background-color: #8e0f33;
}

/* ============================================================
   SUB-FOOTER (belka pod stopką)
   ============================================================ */

.td-sub-footer-container {
    background-color: #ffffff !important;
    color: #444 !important;
    border-top: 1px solid #e0e0e0;
    padding: 12px 0;
    font-size: 13px;
}

.td-sub-footer-container .td-sub-footer-copy {
    float: none;
    color: #444;
    margin: 0;
    line-height: 1.5;
}

.td-sub-footer-container .td-sub-footer-copy a {
    color: #af123f !important;
    text-decoration: none;
}

.td-sub-footer-container .td-sub-footer-copy a:hover {
    text-decoration: underline;
}

.td-sub-footer-container .td-sub-footer-menu {
    float: none;
}

.td-sub-footer-container .td-subfooter-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 18px;
}

.td-sub-footer-container .td-subfooter-menu li {
    display: inline-block;
    margin: 0;
}

.td-sub-footer-container .td-subfooter-menu a {
    color: #444 !important;
    text-decoration: none;
    font-size: 13px;
}

.td-sub-footer-container .td-subfooter-menu a:hover {
    color: #af123f !important;
}

/* ============================================================
   STYLE MOBILNE STOPKI
   ============================================================ */

@media only screen and (max-width: 768px) {
    .td-footer-wrapper {
        padding: 25px 0 15px;
    }

    .td-footer-wrapper .td-pb-span4 {
        margin-bottom: 25px;
    }

    .td-sub-footer-container .td-pb-row {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .td-sub-footer-container .td-subfooter-menu {
        justify-content: center;
    }

    .td-block-title-wrap {
        margin-bottom: 80px;
    }

    .td-category-header .td-page-title {
        margin-bottom: 50px;
    }
}

/* ============================================================
   STYLE OGÓLNE WIDGETÓW
   ============================================================ */

/* Widget: Ostatnio dodane */
.widget_ostatnie_wpisy_obrazkiem_v2 ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_ostatnie_wpisy_obrazkiem_v2 li {
    margin: 0 0 18px 0;
    padding: 0 0 18px 0;
    border-bottom: 1px solid #e8e8e8;
}

.widget_ostatnie_wpisy_obrazkiem_v2 li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget_ostatnie_wpisy_obrazkiem_v2 li a {
    display: block;
    text-decoration: none;
    color: #1a1a1a;
}

.widget_ostatnie_wpisy_obrazkiem_v2 li a:hover .l-post-title {
    color: #af123f;
}

.widget_ostatnie_wpisy_obrazkiem_v2 li img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.l-post-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #1a1a1a;
    margin: 0;
}

/* ============================================================
   HEADER - CZERWONY PASEK Z LOGO + FACEBOOK
   ============================================================ */

/* Czerwony pasek górny */
.zs-top-header {
    background-color: #af123f !important;
    padding: 12px 0;
}

.zs-top-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zs-header-logo a {
    display: block;
    line-height: 0;
}

.zs-logo-img {
    height: 55px;
    width: auto;
    display: block;
}

/* Ikona Facebook w nagłówku */
.zs-fb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #3b5998;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    box-shadow: none !important;
    transition: background-color 0.2s;
}

.zs-fb-btn:hover {
    background-color: #2d4373;
    color: #fff;
}

/* ============================================================
   NAWIGACJA - BIAŁE MENU (tło białe, tekst ciemny)
   ============================================================ */

.td-header-menu-wrap-full {
    height: auto !important;
}

.td-header-menu-wrap,
.td-header-menu-wrap.td-header-gradient {
    background-color: #fff !important;
    background-image: none !important;
}

/* Pozycje menu - ciemny tekst na białym tle */
.sf-menu > li > a,
.tagdiv-small-theme-menu > li > a {
    color: #333 !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0;
    padding: 0 10px;
}

.sf-menu > li > a:hover,
.tagdiv-small-theme-menu > li > a:hover {
    color: #af123f !important;
    background-color: transparent !important;
}

.sf-menu > li.current-menu-item > a,
.sf-menu > li.current-menu-ancestor > a {
    color: #af123f !important;
}

/* Submenu */
.sf-menu ul {
    background-color: #fff !important;
    border-top: 2px solid #af123f !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
}

.sf-menu ul li a {
    color: #333 !important;
    border-bottom: 1px solid #eee !important;
}

.sf-menu ul li a:hover {
    background-color: #f5f5f5 !important;
    color: #af123f !important;
}

/* Ikona wyszukiwarki */
.td-icon-search,
.header-search-wrap .td-icon-search {
    color: #333 !important;
}

/* Przycisk mobile toggle */
#td-top-mobile-toggle a,
#td-top-mobile-toggle a i {
    color: #fff !important;
}

/* Mobile title - ukryty na desktopie */
.zs-mobile-title {
    display: none;
}

@media only screen and (max-width: 1024px) {
    .td-header-menu-wrap .td-container {
        padding: 0 15px;
    }
}

@media only screen and (max-width: 768px) {
    /* Ukryj górny pasek z logo SVG i Facebookiem */
    .zs-top-header {
        display: none !important;
    }

    /* Pasek nawigacyjny: hamburger | TYTUŁ | szukaj */
    .td-header-row.td-header-main-menu {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        min-height: 50px;
    }

    #td-header-menu {
        display: flex;
        align-items: center;
        flex: 1;
    }

    /* Tytuł wyśrodkowany absolutnie */
    .zs-mobile-title {
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateX(-50%) translateY(-50%);
        color: #fff !important;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        pointer-events: auto;
    }

    /* Ikona szukaj */
    #td-header-search-button-mob i,
    .header-search-wrap .td-icon-search {
        color: #fff !important;
    }

    /* Ukryj desktopowy przycisk szukaj, pokaż mobilny */
    #td-header-search-button {
        display: none !important;
    }
}

.zs-header-logo {
    position: relative;
    top: 18px;
}
aside#text-2 img {
    left: 0px;
    top: 0px;
    width: 70%;
}
aside#text-2, aside#text-2 p {
    margin-bottom: 0;
}
aside#text-11 {
    margin: 0;
    padding: 0;
}
aside#text-14 {
    margin-bottom: 0;
}

/* ============================================================
   LEGACY BLOK td_block_big_grid_3 - style z Newspaper 7
   ============================================================ */

/* Ogólny kontener każdego kafelka */
.td-big-grid-post {
    position: relative;
    overflow: hidden;
}
.td-big-grid-post .td-post-category {
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-block;
    margin: 0 0 5px 0;
    padding: 3px 7px;
    line-height: 13px;
    pointer-events: auto;
}
.td-big-grid-post .td-meta-info-container {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    width: 100%;
}
.td-big-grid-post .td-meta-align {
    pointer-events: none;
}
.td-big-grid-post .td-post-author-name a,
.td-big-grid-post .td-post-author-name span,
.td-big-grid-post .td-post-date {
    color: #fff;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}
.td-big-grid-post .entry-title {
    margin: 0;
}
.td-big-grid-post .entry-title a {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
.td-big-grid-post .td-module-meta-info {
    margin: 11px 0 20px 20px;
    min-height: 0;
    z-index: 1;
}
@media (max-width: 767px) {
    .td-big-grid-post .td-module-meta-info {
        margin-left: 17px;
    }
}
.td-big-grid-post .td-post-author-name {
    pointer-events: auto;
}
.td-big-grid-post .td-big-grid-meta {
    z-index: 1;
}
.td-big-grid-post.td-big-thumb .td-big-grid-meta {
    font-size: 27px;
}
@media (min-width: 1019px) and (max-width: 1140px) {
    .td-big-grid-post.td-big-thumb .td-big-grid-meta .entry-title {
        font-size: 80%;
        line-height: 1.3;
    }
}
@media (min-width: 768px) and (max-width: 1018px) {
    .td-big-grid-post.td-big-thumb .td-big-grid-meta .entry-title {
        font-size: 16px;
        line-height: 1.3;
    }
}
@media (max-width: 767px) {
    .td-big-grid-post.td-big-thumb .td-big-grid-meta .entry-title {
        font-size: 22px;
    }
}
.td-big-grid-post.td-medium-thumb .td-big-grid-meta {
    font-size: 24px;
}
@media (max-width: 767px) {
    .td-big-grid-post.td-medium-thumb .td-big-grid-meta {
        font-size: 16px;
    }
}
@media (min-width: 1019px) and (max-width: 1140px) {
    .td-big-grid-post.td-medium-thumb .td-big-grid-meta .entry-title {
        font-size: 85%;
        line-height: 1.3;
    }
}
@media (min-width: 768px) and (max-width: 1018px) {
    .td-big-grid-post.td-medium-thumb .td-big-grid-meta .entry-title {
        font-size: 65%;
        line-height: 1.3;
    }
}
@media (max-width: 767px) {
    .td-big-grid-post.td-medium-thumb .td-big-grid-meta .entry-title {
        font-size: 16px;
        line-height: 21px;
    }
}
.td-big-grid-post.td-small-thumb .td-big-grid-meta {
    font-size: 16px;
}
@media (min-width: 1019px) and (max-width: 1140px) {
    .td-big-grid-post.td-small-thumb .td-big-grid-meta .entry-title {
        font-size: 90%;
        line-height: 1.4;
    }
}
@media (min-width: 768px) and (max-width: 1018px) {
    .td-big-grid-post.td-small-thumb .td-big-grid-meta .entry-title {
        font-size: 80%;
        line-height: 1.4;
    }
}
@media (max-width: 767px) {
    .td-big-grid-post.td-small-thumb .td-big-grid-meta .entry-title {
        font-size: 16px;
        line-height: 21px;
    }
}
.td-big-grid-post .td-module-thumb {
    overflow: hidden;
    margin: 0;
    background-color: #e5e5e5;
}
.td-big-grid-post .td-module-thumb img {
    max-width: none;
}
.td-big-grid-post .entry-thumb {
    width: 100%;
}

/* Gradient-style-1: ciemny gradient od dołu + tytuł nad zdjęciem */
.td-grid-style-1 .td-meta-info-container {
    bottom: 0;
}
.td-grid-style-1 .td-module-thumb a:last-child:before {
    bottom: 0;
    content: "";
    display: block;
    height: 70%;
    width: 100%;
    position: absolute;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7) 100%);
}
@media (max-width: 767px) {
    .td-grid-style-1 .td-module-thumb a:last-child:before {
        height: 130% !important;
    }
}
.td-grid-style-1 .td-post-category {
    background-color: rgba(0,0,0,0.7);
}
.td-grid-style-1 .td-big-thumb .td-big-grid-meta {
    width: 80%;
    margin: 0 0 0 20px;
}
@media (max-width: 767px) {
    .td-grid-style-1 .td-big-thumb .td-big-grid-meta {
        width: 90%;
        margin-left: 15px;
    }
}
.td-grid-style-1 .td-big-thumb .entry-title {
    font-size: 27px;
    font-weight: 500;
    line-height: 34px;
}
.td-grid-style-1 .td-medium-thumb .td-big-grid-meta {
    width: 80%;
    margin: 20px 0 14px 19px;
}
@media (max-width: 767px) {
    .td-grid-style-1 .td-medium-thumb .td-big-grid-meta {
        margin: 0 15px 11px;
    }
}
.td-grid-style-1 .td-medium-thumb .entry-title {
    font-size: 24px;
    line-height: 30px;
    font-weight: 500;
}
.td-grid-style-1 .td-small-thumb .td-big-grid-meta {
    margin: 0 15px 11px;
}
.td-grid-style-1 .td-small-thumb .entry-title {
    margin-top: 2px;
    font-size: 16px;
    line-height: 21px;
    font-weight: 500;
}
.td-grid-style-1.td-hover-1 .td-module-thumb .entry-thumb {
    transition: transform 0.3s ease, opacity 0.3s;
}
.td-grid-style-1.td-hover-1 .td-big-grid-post:hover .td-module-thumb .entry-thumb {
    transform: scale3d(1.1, 1.1, 1);
}

/* Wymiary i układ float dla td_block_big_grid_3 */
.td_block_big_grid_3 {
    padding-bottom: 48px;
}
@media (max-width: 767px) {
    .td_block_big_grid_3 {
        margin-left: -10px;
        margin-right: -10px;
    }
}
.td_block_big_grid_3 .td-big-grid-post {
    float: left;
}
.td_block_big_grid_3 .td-big-thumb {
    margin-right: 3px;
}
.td_block_big_grid_3 .td-big-thumb .td-module-thumb {
    width: 532px;
    height: 462px;
}
@media (min-width: 1019px) and (max-width: 1140px) {
    .td_block_big_grid_3 .td-big-thumb .td-module-thumb {
        width: 488px;
        height: 422px;
    }
}
@media (min-width: 768px) and (max-width: 1018px) {
    .td_block_big_grid_3 .td-big-thumb .td-module-thumb {
        width: 368px;
        height: 318px;
    }
}
@media (max-width: 767px) {
    .td_block_big_grid_3 .td-big-thumb .td-module-thumb {
        width: 100%;
        height: auto;
    }
}
.td_block_big_grid_3 .td-medium-thumb {
    margin-bottom: 3px;
}
.td_block_big_grid_3 .td-medium-thumb .td-module-thumb {
    width: 533px;
    height: 261px;
}
@media (min-width: 1019px) and (max-width: 1140px) {
    .td_block_big_grid_3 .td-medium-thumb .td-module-thumb {
        height: 237px;
        width: 489px;
    }
}
@media (min-width: 768px) and (max-width: 1018px) {
    .td_block_big_grid_3 .td-medium-thumb .td-module-thumb {
        height: 179px;
        width: 369px;
    }
}
@media (min-width: 375px) and (max-width: 767px) {
    .td_block_big_grid_3 .td-medium-thumb .td-module-thumb {
        height: 140px !important;
    }
}
@media (max-width: 374px) {
    .td_block_big_grid_3 .td-medium-thumb .td-module-thumb {
        height: 124px !important;
    }
}
.td_block_big_grid_3 .td-small-thumb .td-module-thumb {
    width: 265px;
    height: 198px;
}
@media (min-width: 1019px) and (max-width: 1140px) {
    .td_block_big_grid_3 .td-small-thumb .td-module-thumb {
        width: 243px;
        height: 182px;
    }
}
@media (min-width: 768px) and (max-width: 1018px) {
    .td_block_big_grid_3 .td-small-thumb .td-module-thumb {
        width: 183px;
        height: 136px;
    }
}
@media (min-width: 375px) and (max-width: 767px) {
    .td_block_big_grid_3 .td-small-thumb .td-module-thumb {
        height: 140px !important;
    }
}
@media (max-width: 374px) {
    .td_block_big_grid_3 .td-small-thumb .td-module-thumb {
        height: 124px !important;
    }
}
@media (max-width: 767px) {
    .td_block_big_grid_3 .td-big-grid-post-0 {
        width: 100%;
        float: none;
    }
}
.td_block_big_grid_3 .td-big-grid-post-3 {
    margin-left: 3px;
}
.td_block_big_grid_3 .td-module-empty {
    display: none !important;
}

/* Scroll na mobile dla big-grid */
@media (max-width: 767px) {
    .td_block_wrap .td-big-grid-wrapper .td-big-grid-scroll {
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0;
        overflow-y: hidden;
        padding-top: 3px;
        -webkit-overflow-scrolling: touch;
        transform: translate3d(0,0,0);
    }
    .td_block_wrap .td-big-grid-wrapper .td-big-grid-scroll .td-big-grid-post {
        display: inline-block;
        white-space: normal;
        float: none;
        vertical-align: top;
        width: 80%;
        margin-left: 3px;
        margin-right: 0;
        margin-bottom: 0;
    }
    .td_block_wrap .td-big-grid-wrapper .td-big-grid-scroll .td-big-grid-post:first-child {
        margin-left: 0;
    }
    .td_block_wrap .td-big-grid-wrapper .td-big-grid-scroll .td-module-thumb {
        width: 100%;
        height: 170px;
    }
}
.vc_row_inner.tdi_16.vc_row.vc_inner.wpb_row.td-pb-row, .vc_row_inner.tdi_7.vc_row.vc_inner.wpb_row.td-pb-row {
    display: none;
}
.vc_row.wpb_row.vc_inner.td-pb-row {
    height: 0;
}
.td-header-menu-wrap, .td-header-menu-wrap.td-header-gradient {
    padding-top: 5px;
    padding-bottom: 5px;
}
#custom_html-2, #custom_html-4, #custom_html-3 {
    margin-bottom: 0;
}
#custom_html-2 img {
    width: 70%;
}
aside#custom_html-3 {
    padding-top: 0;
}