/* =========================================================
   PUSKAS MODERN - CONSOLIDATED STYLESHEET
   Joomla 4 / Joomla 5
   Version 1.2.0
   PUSKAS BAZNAS
   ========================================================= */

/* 01. DESIGN TOKENS
   --------------------------------------------------------- */
:root {
    --green: #075b3b;
    --green-dark: #06452f;
    --green-light: #16834a;
    --green-soft: #eaf3ee;
    --gold: #c99b32;

    --ink: #17251f;
    --muted: #64736c;
    --line: #e2e9e4;
    --surface: #ffffff;
    --page: #f5f7f5;

    --site-width: 1200px;
    --radius: 7px;
    --shadow: 0 8px 35px rgba(14, 44, 29, 0.06);
}

/* 02. RESET AND BASE
   --------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

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

a {
    color: var(--green);
    text-decoration: none;
}

a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-shell {
    width: calc(100% - 36px);
    max-width: var(--site-width);
    margin: 0 auto;
    background: var(--surface);
    box-shadow: var(--shadow);
}

/* 03. HEADER AND BRANDING
   --------------------------------------------------------- */
.site-header {
    display: block;
    width: 100%;
    overflow: visible;
    background: #fff;
    border-top: 4px solid var(--green);
    border-bottom: 0;
}

.header-inner {
    min-height: 130px;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #ffffff;
}

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 18px;
}

.brand img {
    display: block;
    width: auto;
    max-width: 440px;
    max-height: 105px;
    height: auto;
    object-fit: contain;
}

.brand-tagline {
    max-width: 230px;
    padding-left: 16px;
    border-left: 1px solid var(--line);
    color: #45564d;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}

/* Header modules: Language/utility module and Smart Search */
.header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
    margin-left: auto;
}

.header-tools > * {
    min-width: 0;
}

#mod-custom135 {
    display: block;
    flex: 0 0 auto;
}

.header-tools .mod-finder {
    display: block;
    width: 265px;
    max-width: 100%;
}

.header-tools .mod-finder__search,
.header-tools form {
    display: flex;
    align-items: center;
}

.header-tools .mod-finder__search {
    width: 100%;
}

.header-tools .mod-finder input[type="text"],
.header-tools .mod-finder input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #d5dfd8;
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
}

.header-tools .mod-finder input:focus {
    border-color: var(--green);
}

.header-tools .mod-finder button,
.header-tools .mod-finder input[type="submit"] {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--green);
    color: #fff;
    cursor: pointer;
}

.header-tools .mod-finder button:hover,
.header-tools .mod-finder input[type="submit"]:hover {
    background: var(--green-dark);
}

.header-tools label.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu-toggle {
    display: none;
    padding: 9px 13px;
    border: 0;
    border-radius: 6px;
    background: var(--green);
    color: #fff;
    cursor: pointer;
}

/* 04. PRIMARY NAVIGATION AND MULTILEVEL DROPDOWNS
   --------------------------------------------------------- */
.primary-nav {
    position: relative;
    z-index: 100;
    width: 100%;
    background: var(--green);
}

.nav-inner {
    padding: 0;
}

.primary-nav ul.mod-menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--green);
}

.primary-nav ul.mod-menu > li {
    position: relative;
    flex: 0 0 auto;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.primary-nav ul.mod-menu > li > a,
.primary-nav ul.mod-menu > li > span {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 15px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.primary-nav ul.mod-menu > li:hover,
.primary-nav ul.mod-menu > li:focus-within,
.primary-nav ul.mod-menu > li.active {
    background: var(--green-light);
}

.primary-nav ul.mod-menu__sub {
    display: none;
    position: absolute;
    z-index: 1000;
    top: 100%;
    left: 0;
    min-width: 245px;
    max-width: min(340px, 90vw);
    margin: 0;
    padding: 5px 0;
    list-style: none;
    background: #fff;
    border-top: 3px solid var(--gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.primary-nav li:hover > ul.mod-menu__sub,
.primary-nav li:focus-within > ul.mod-menu__sub {
    display: block;
}

.primary-nav ul.mod-menu__sub > li {
    position: relative;
    width: 100%;
    border: 0;
}

.primary-nav ul.mod-menu__sub > li > a,
.primary-nav ul.mod-menu__sub > li > span {
    display: block;
    padding: 10px 15px;
    color: var(--ink);
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
}

.primary-nav ul.mod-menu__sub > li:hover > a,
.primary-nav ul.mod-menu__sub > li:hover > span,
.primary-nav ul.mod-menu__sub > li:focus-within > a,
.primary-nav ul.mod-menu__sub > li:focus-within > span {
    background: var(--green-soft);
    color: var(--green);
}

/* Second and deeper levels open to the right */
.primary-nav ul.mod-menu__sub ul.mod-menu__sub {
    top: 0;
    left: 100%;
}

/* 05. BREADCRUMBS
   --------------------------------------------------------- */
.breadcrumbs,
.breadcrumb {
    padding: 10px 26px;
    color: var(--muted);
    font-size: 13px;
}

/* 06. HOMEPAGE SLIDESHOW
   --------------------------------------------------------- */
.pm-slideshow {
    position: relative;
    width: 100%;
    height: var(--slide-height, 335px);
    overflow: hidden;
    background: #edf3ef;
}

.pm-slide-track,
.pm-slide {
    width: 100%;
    height: 100%;
}

.pm-slide[hidden] {
    display: none !important;
}

.pm-slide > a {
    display: block;
    width: 100%;
    height: 100%;
}

.pm-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pm-slide-caption {
    position: absolute;
    left: 7%;
    bottom: 12%;
    max-width: 42%;
    padding: 16px 20px;
    border-left: 4px solid var(--green);
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
}

.pm-slide-control {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: rgba(24, 61, 46, 0.65);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.pm-slide-control:hover {
    background: var(--green);
}

.pm-prev {
    left: 18px;
}

.pm-next {
    right: 18px;
}

.pm-slide-dots {
    position: absolute;
    right: 0;
    bottom: 13px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pm-slide-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.pm-slide-dots button[aria-current="true"] {
    background: var(--green);
    outline: 2px solid #fff;
}

/* 07. TOP MODULE GRID
   --------------------------------------------------------- */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 22px 26px;
}

.module-card {
    min-width: 0;
}

/* 08. CONTENT AND SIDEBAR LAYOUT
   --------------------------------------------------------- */
.content-top-area,
.content-bottom-area {
    width: 100%;
    min-width: 0;
}

.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 22px 26px;
}

.main-layout.has-left {
    grid-template-columns: 240px minmax(0, 1fr);
}

.main-layout.has-right {
    grid-template-columns: minmax(0, 1fr) 240px;
}

.main-layout.has-left.has-right {
    grid-template-columns: 220px minmax(0, 1fr) 220px;
}

.sidebar,
.main-content {
    min-width: 0;
}

.sidebar-module {
    min-width: 0;
    margin-bottom: 20px;
}

.main-content img,
.sidebar img {
    max-width: 100%;
    height: auto;
}

.main-content h1,
.main-content h2 {
    color: var(--green-dark);
    line-height: 1.25;
}

.main-content h2 {
    font-size: 1.45rem;
}

/* 09. MODULE BAND
   --------------------------------------------------------- */
.module-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 22px 26px;
    border-top: 1px solid var(--line);
}

/* 10. YOUTUBE GALLERY
   Module ID 231 / Video List ID 1 / Theme ID 3
   --------------------------------------------------------- */

.feature-gallery {
    width: 100%;
    margin: 2px auto 20px;
    padding: 20px 15px;
    background: #ffffff;
    box-sizing: border-box;
}

#YoutubeGalleryMainContainer1 {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
}

/* Keep the gallery plugin's configured player height (currently 700px).
   Do not force height:0 or a CSS aspect ratio on this container. */
#YoutubeGallerySecondaryContainer1,
.YoutubeGalleryLogoCover1 {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 800px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    box-sizing: border-box;
}

#YoutubeGallerySecondaryContainer1 iframe,
#YoutubeGallerySecondaryContainer1 object,
#YoutubeGallerySecondaryContainer1 embed {
    display: block !important;
    max-width: 100% !important;
    border: 0;
    background: #000000;
}

/* Five thumbnails per row on desktop */
#youtubegallery_thumbnails_1 {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: start;
    gap: 12px;
    width: 100% !important;
    max-width: 800px !important;
    margin: 18px auto !important;
    box-sizing: border-box;
}

#youtubegallery_thumbnails_1 > div {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    padding: 5px;
    box-sizing: border-box;
    text-align: center;
}

#youtubegallery_thumbnails_1 .ygThumb-inactive,
#youtubegallery_thumbnails_1 .ygThumb-active {
    display: block !important;
    width: 100% !important;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

#youtubegallery_thumbnails_1 a {
    display: inline-block;
    max-width: 100%;
}

#youtubegallery_thumbnails_1 img {
    display: block !important;
    width: 120px !important;
    height: 90px !important;
    max-width: 100% !important;
    margin: 0 auto 7px !important;
    border: 0 !important;
    border-radius: 4px;
    object-fit: cover;
}

#youtubegallery_thumbnails_1 .ygThumb-inactive div,
#youtubegallery_thumbnails_1 .ygThumb-active div {
    font-size: 11px !important;
    line-height: 1.4;
    overflow-wrap: anywhere;
    text-align: center;
}

#youtubegallery_thumbnails_1 .ygThumb-active {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

#YoutubeGalleryMainContainer1 .pagination {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin: 20px auto !important;
}

/* =========================================================
   END YOUTUBE GALLERY
   ========================================================= */

/* 11. FOOTER
   --------------------------------------------------------- */
.site-footer {
    margin-top: 28px;
    background: #123e2e;
    color: #eaf3ee;
}

.site-footer h3,
.site-footer h4,
.site-footer h5 {
    color: #fff;
}

.site-footer a {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    padding: 30px 28px;
}

.footer-module {
    min-width: 0;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #d5e3da;
    font-size: 13px;
}

/* 12. TABLET
   --------------------------------------------------------- */
@media (max-width: 980px) {
    .header-inner {
        padding: 12px 18px;
    }

    .brand-tagline {
        display: none !important;
    }

    .primary-nav ul.mod-menu {
        flex-wrap: wrap;
    }

    .main-layout.has-left,
    .main-layout.has-right,
    .main-layout.has-left.has-right {
        grid-template-columns: minmax(0, 1fr);
    }

    .quick-grid,
    .module-band,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #YoutubeGalleryMainContainer1,
    #YoutubeGallerySecondaryContainer1,
    .YoutubeGalleryLogoCover1 {
        max-width: 100% !important;
    }
}

/* 13. MOBILE
   --------------------------------------------------------- */
@media (max-width: 680px) {
    .site-shell {
        width: 100%;
    }

    .header-inner {
    min-height: 90px;
    }

    .brand img {
    max-width: 230px;
    max-height: 75px;
    }

    .header-tools {
        order: 3;
        width: 100%;
        margin: 0;
    }

    .header-tools .mod-finder {
        width: 100%;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .primary-nav ul.mod-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .primary-nav.is-open ul.mod-menu {
        display: flex;
    }

    .primary-nav ul.mod-menu > li {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .primary-nav ul.mod-menu > li > a,
    .primary-nav ul.mod-menu > li > span {
        min-height: 44px;
        padding: 10px 16px;
    }

    .primary-nav ul.mod-menu__sub,
    .primary-nav ul.mod-menu__sub ul.mod-menu__sub {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding-left: 15px;
        border-top: 0;
        box-shadow: none;
    }

    .primary-nav li:hover > ul.mod-menu__sub,
    .primary-nav li:focus-within > ul.mod-menu__sub {
        display: block;
    }

    .quick-grid,
    .module-band,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .main-layout {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
    }

    .quick-grid,
    .module-band {
        padding: 16px;
    }

    .pm-slideshow {
        height: var(--slide-mobile-height, 260px);
    }

    .pm-slide-caption {
        right: 5%;
        bottom: 10%;
        left: 5%;
        max-width: none;
        padding: 10px 12px;
        font-size: 13px;
    }

    .pm-slide-control {
        width: 34px;
        height: 34px;
        font-size: 23px;
    }

    .pm-prev {
        left: 10px;
    }

    .pm-next {
        right: 10px;
    }

    #YoutubeGalleryMainContainer1 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 15px auto !important;
    }

    #YoutubeGallerySecondaryContainer1,
    .YoutubeGalleryLogoCover1 {
        width: 100% !important;
        max-width: 100% !important;
    }

    #youtubegallery_thumbnails_1 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
        width: 100% !important;
    }

    #youtubegallery_thumbnails_1 img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .footer-grid {
        padding: 22px 18px;
    }

    .footer-bottom {
        padding: 15px 18px;
    }
}


/* =========================================================
   14. FINAL HEADER DETAILS
   --------------------------------------------------------- */

/* User requested removal of the tagline from the header */
.brand-tagline {
    display: none !important;
}

/* Larger search icon drawn with CSS; no icon font dependency */
.header-tools .mod-finder button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-width: 52px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--green);
    color: #ffffff;
    font-size: 0;
    cursor: pointer;
}

.header-tools .mod-finder button .icon-search {
    position: relative;
    display: block;
    width: 26px;
    height: 26px;
    font-size: 0;
    line-height: 0;
}

.header-tools .mod-finder button .icon-search::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border: 2.5px solid #ffffff;
    border-radius: 50%;
}

.header-tools .mod-finder button .icon-search::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 17px;
    width: 9px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 3px;
    transform: rotate(45deg);
    transform-origin: left center;
}

.header-tools .mod-finder button:hover {
    background: var(--green-dark);
}

/* 2px gap between navigation and slideshow */
.pm-slideshow {
    margin-top: 2px;
}

/* 2px gap between slideshow and the next homepage section */
.pm-slideshow + .content-top-area,
.pm-slideshow + .quick-grid {
    margin-top: 2px;
}

/* =========================================================
   15. FINAL MULTILEVEL NAVIGATION FIX
   Do not clip nested dropdowns with overflow or max-height.
   ========================================================= */

.primary-nav,
.primary-nav .nav-inner,
.primary-nav ul.mod-menu,
.primary-nav ul.mod-menu > li,
.primary-nav ul.mod-menu__sub,
.primary-nav ul.mod-menu__sub > li {
    overflow: visible !important;
}

.primary-nav,
.primary-nav .nav-inner,
.primary-nav > .nav-inner > ul.mod-menu {
    position: relative;
    z-index: 10000;
}

.primary-nav > .nav-inner > ul.mod-menu > li {
    position: relative;
}

.primary-nav > .nav-inner > ul.mod-menu > li > ul.mod-menu__sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10010;
    display: none;
    min-width: 245px;
    max-width: min(340px, 90vw);
    max-height: none !important;
    overflow: visible !important;
}

.primary-nav > .nav-inner > ul.mod-menu > li:hover > ul.mod-menu__sub,
.primary-nav > .nav-inner > ul.mod-menu > li:focus-within > ul.mod-menu__sub {
    display: block;
}

.primary-nav ul.mod-menu__sub > li {
    position: relative;
}

.primary-nav ul.mod-menu__sub > li > ul.mod-menu__sub {
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 10020;
    display: none;
    min-width: 245px;
    max-width: min(340px, 90vw);
    max-height: none !important;
    overflow: visible !important;
}

.primary-nav ul.mod-menu__sub > li:hover > ul.mod-menu__sub,
.primary-nav ul.mod-menu__sub > li:focus-within > ul.mod-menu__sub {
    display: block;
}

.primary-nav ul.mod-menu__sub > li > .mod-menu__heading,
.primary-nav ul.mod-menu__sub > li > .mod-menu__separator {
    display: block;
    padding: 10px 15px;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
}

.primary-nav ul.mod-menu__sub > li:hover > .mod-menu__heading,
.primary-nav ul.mod-menu__sub > li:focus-within > .mod-menu__heading {
    background: var(--green-soft);
    color: var(--green);
}

.site-shell,
.site-header {
    overflow: visible;
}

/* 2px breathing space around gallery content */
.feature-gallery {
    margin-top: 2px;
}

@media (max-width: 680px) {
    .primary-nav,
    .primary-nav .nav-inner,
    .primary-nav ul.mod-menu,
    .primary-nav ul.mod-menu__sub,
    .primary-nav ul.mod-menu__sub > li {
        overflow: visible !important;
    }

    .primary-nav > .nav-inner > ul.mod-menu > li > ul.mod-menu__sub,
    .primary-nav ul.mod-menu__sub > li > ul.mod-menu__sub {
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        min-width: 0;
        max-width: none;
        max-height: none !important;
        padding-left: 15px;
        border-top: 0;
        box-shadow: none;
    }

    .primary-nav ul.mod-menu__sub > li > ul.mod-menu__sub {
        padding-left: 14px;
    }

    .brand img {
        max-width: 230px;
        max-height: 75px;
    }

    .header-tools .mod-finder button {
        width: 48px;
        min-width: 48px;
    }

    #YoutubeGalleryMainContainer1,
    #YoutubeGallerySecondaryContainer1,
    .YoutubeGalleryLogoCover1 {
        width: 100% !important;
        max-width: 100% !important;
    }

    #youtubegallery_thumbnails_1 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
        width: 100% !important;
    }

    #youtubegallery_thumbnails_1 img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }
}

/* =========================================================
   14. SIDEBAR MENU - PRODUCTION STYLE
   ========================================================= */

.sidebar-left {
    min-width: 0;
}

.sidebar-left .mod-menu {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
}

.sidebar-left .mod-menu > li {
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
    border-bottom: 1px dotted #ccc;
    background: #fff;
}

.sidebar-left .mod-menu > li > a,
.sidebar-left .mod-menu > li > span {
    display: block;
    padding: 4px 10px;
    color: #a90000;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    text-decoration: none;
    background: transparent;
}

.sidebar-left .mod-menu > li:first-child > a {
    font-weight: 700;
}

.sidebar-left .mod-menu > li > a:hover,
.sidebar-left .mod-menu > li.active > a {
    color: #c00000;
    background: #fff;
    text-decoration: none;
}

.sidebar-left .mod-menu > li.item-101 > .mod-menu__sub {
    display: block;
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 25px;
    list-style: none;
    background: #fff;
    box-shadow: none;
}

.sidebar-left .mod-menu > li:not(.item-101) > .mod-menu__sub {
    display: none;
}

.sidebar-left .mod-menu > li.item-101 > .mod-menu__sub > li {
    display: block;
    border: 0;
}

.sidebar-left .mod-menu > li.item-101 > .mod-menu__sub a {
    display: block;
    padding: 4px 10px;
    color: #a90000;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
}

.sidebar-left .mod-menu > li.item-101 > .mod-menu__sub a:hover {
    color: #c00000;
    background: #fff;
}

.sidebar-left .mod-menu li::marker {
    content: "";
}

.sidebar-left .mod-menu .nav-header,
.sidebar-left .mod-menu .separator {
    color: #a90000;
}

/* =========================================================
   15. ARTICLE PAGINATION - PRODUCTION STYLE
   ========================================================= */

.main-content .w-100:has(> nav.pagination__wrapper) {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 18px;
    margin-bottom: 80px;
}

.main-content nav.pagination__wrapper {
    order: 1;
    flex: 1 1 auto;
    margin: 0 !important;
    padding: 0 !important;
}

.main-content nav.pagination__wrapper ul.pagination {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-content nav.pagination__wrapper ul.pagination li {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.main-content nav.pagination__wrapper .page-link {
    display: block;
    min-width: 34px;
    padding: 6px 11px;
    border: 1px solid #dedede;
    border-radius: 0;
    background: #fff;
    color: var(--green);
    text-align: center;
    text-decoration: none;
    font-size: 13px;
}

.main-content nav.pagination__wrapper li.active .page-link {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.main-content nav.pagination__wrapper .page-link:hover {
    background: var(--green-soft);
    color: var(--green);
}

.main-content .w-100 > p.counter {
    order: 2;
    float: none !important;
    margin: 0 0 0 15px !important;
    padding: 0 !important;
    color: var(--ink);
    font-size: 13px;
    white-space: nowrap;
}

/* =========================================================
   16. HOME BOTTOM TABS - PRODUCTION TYPOGRAPHY AND SPACING
   ========================================================= */

.home-bottom-tabs {
    width: 100%;
    margin: 24px 0 25px;
    padding: 0;
    background: #fff;
}

.home-bottom-tabs__nav {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 10px;
    padding: 0;
    border-bottom: 1px solid #bdbdbd;
}

.home-bottom-tabs__tab {
    appearance: none;
    -webkit-appearance: none;
    margin: 0 0 -1px;
    padding: 7px 11px 8px;
    border: 1px solid transparent;
    border-bottom: 1px solid transparent;
    background: #fff;
    color: #075b3b;
    font-family: inherit;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
    white-space: nowrap;
    cursor: pointer;
}

.home-bottom-tabs__tab:hover {
    color: #06452f;
    background: #fafafa;
}

.home-bottom-tabs__tab.is-active {
    color: #075b3b;
    border-color: #bdbdbd;
    border-bottom-color: #fff;
    background: #fff;
}

.home-bottom-tabs__panel {
    display: block;
    margin: 0;
    padding: 0;
}

.home-bottom-tabs__panel[hidden] {
    display: none !important;
}

.home-bottom-tabs__panel ul {
    list-style: disc;
    margin: 0;
    padding: 0 0 0 20px;
}

.home-bottom-tabs__panel li {
    margin: 0;
    padding: 1px 0;
    border: 0;
    color: #075b3b;
    font-size: 13px;
    line-height: 1.4;
}

.home-bottom-tabs__panel a {
    color: #075b3b;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
}

.home-bottom-tabs__panel a:hover {
    color: #06452f;
    text-decoration: underline;
}

.home-bottom-tabs__panel .mod-articles-category-date,
.home-bottom-tabs__panel .mod-articleslatest-date {
    display: inline;
    margin-left: 4px;
    color: #222;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
}

.home-bottom-tabs__panel p {
    margin: 0;
    padding: 0;
}

/* =========================================================
   17. HOMEPAGE LAYOUT - RESTORE LEFT SIDEBAR
   ========================================================= */

.main-layout.is-home-layout {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr) !important;
    gap: 24px !important;
    width: 100%;
}

.main-layout.is-home-layout > aside.sidebar-left {
    display: block !important;
    visibility: visible !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.main-layout.is-home-layout > section.main-content {
    display: block !important;
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

/* =========================================================
   18. RESPONSIVE OVERRIDES
   ========================================================= */

@media (max-width: 980px) {
    .main-layout.is-home-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px !important;
    }

    .main-layout.is-home-layout > aside.sidebar-left {
        display: block !important;
        width: 100% !important;
    }

    .main-layout.is-home-layout > section.main-content {
        grid-column: 1 !important;
    }
}

@media (max-width: 680px) {
    .sidebar-left .mod-menu > li > a,
    .sidebar-left .mod-menu > li > span,
    .sidebar-left .mod-menu > li.item-101 > .mod-menu__sub a {
        font-size: 14px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .main-content .w-100:has(> nav.pagination__wrapper) {
        gap: 12px;
        margin-bottom: 45px;
    }

    .main-content nav.pagination__wrapper {
        flex-basis: 100%;
        order: 1;
    }

    .main-content .w-100 > p.counter {
        order: 2;
        margin-left: auto !important;
    }

    .home-bottom-tabs__nav {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
    }

    .home-bottom-tabs__tab {
        flex: 0 0 auto;
        padding: 8px 11px;
        font-size: 15px;
    }

    .home-bottom-tabs__panel ul {
        padding-left: 19px;
    }

    .home-bottom-tabs__panel li,
    .home-bottom-tabs__panel a,
    .home-bottom-tabs__panel .mod-articles-category-date,
    .home-bottom-tabs__panel .mod-articleslatest-date {
        font-size: 13px;
    }
}

/* =========================================================
   19. SOCIAL SHARING - PRODUCTION ROW
   ========================================================= */

.main-content .article-share {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 9px !important;
    width: 100% !important;
    margin: 12px 0 14px !important;
    padding: 0 !important;
}

.main-content .article-share a,
.main-content .article-share button {
    display: inline-flex !important;
    flex: 0 0 29px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 29px !important;
    min-width: 29px !important;
    height: 29px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 5px !important;
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer;
}

.main-content .article-share svg {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    max-width: none !important;
    margin: 0 !important;
}

.article-share .article-share__whatsapp { background: #16b83e !important; }
.article-share .article-share__facebook { background: #1877f2 !important; }
.article-share .article-share__x { background: #249be8 !important; }
.article-share .article-share__email { background: #858b91 !important; }
.article-share .article-share__more { background: #0875ed !important; }

.main-content .article-share a:hover,
.main-content .article-share button:hover {
    opacity: .85;
}

/* Social icons sit above the Joomla article pagination */
.main-content .w-100:has(> .article-share) {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.main-content .w-100 > .article-share {
    order: 1 !important;
    flex: 0 0 100% !important;
}

.main-content .w-100 > nav.pagination__wrapper {
    order: 2 !important;
    flex: 1 1 auto !important;
}

.main-content .w-100 > p.counter {
    order: 3 !important;
}

/* =========================================================
   20. PAGINATION FIRST / PREVIOUS / NEXT / LAST SYMBOLS
   ========================================================= */

.main-content nav.pagination__wrapper .page-link .icon-angle-double-left,
.main-content nav.pagination__wrapper .page-link .icon-angle-left,
.main-content nav.pagination__wrapper .page-link .icon-angle-right,
.main-content nav.pagination__wrapper .page-link .icon-angle-double-right {
    display: none !important;
}

.main-content nav.pagination__wrapper ul.pagination > li:first-child .page-link::after {
    content: "\00AB";
}

.main-content nav.pagination__wrapper ul.pagination > li:nth-child(2) .page-link::after {
    content: "\2039";
}

.main-content nav.pagination__wrapper ul.pagination > li:nth-last-child(2) .page-link::after {
    content: "\203A";
}

.main-content nav.pagination__wrapper ul.pagination > li:last-child .page-link::after {
    content: "\00BB";
}

/* =========================================================
   21. FOOTER - MATCH PRODUCTION MODULES
   ========================================================= */

.site-footer {
    position: relative;
    width: 100%;
    min-height: 170px;
    margin: 28px 0 0;
    padding: 0;
    background: #eeeeee !important;
    color: #111111 !important;
    border: 0;
}

/* Production's first copyright line: custom module ID 90 */
.site-footer .footer-top {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 5px 70px;
    background: #eeeeee;
    text-align: center;
}

.site-footer .footer-top p {
    margin: 0;
    padding: 0;
    color: #111111;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

/* Footer1-4 are not used in the compact production footer */
.site-footer .footer-grid {
    display: none !important;
}

/* Second footer row: module 112 + RSS module 162 */
.site-footer .footer-bottom {
    position: relative;
    display: block;
    width: 100%;
    min-height: 132px;
    margin: 0;
    padding: 12px 100px 24px;
    background: #eeeeee !important;
    border: 0 !important;
    color: #111111 !important;
}

/* Custom HTML module ID 112 contains the BAZNAS logo and 2026 copyright */
.site-footer .footer-bottom > .mod-custom,
.site-footer .footer-bottom > div[id*="mod-custom"] {
    display: block;
    width: 100%;
    min-height: 95px;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Reset the empty leading paragraph in module 112 */
.site-footer .footer-bottom > .mod-custom p:first-child,
.site-footer .footer-bottom > div[id*="mod-custom"] p:first-child {
    display: none;
}

/* BAZNAS logo from module 112: keep it at the left */
.site-footer .footer-bottom > .mod-custom img,
.site-footer .footer-bottom > div[id*="mod-custom"] img {
    display: block;
    float: left !important;
    width: 99px !important;
    height: 72px !important;
    max-width: 99px !important;
    margin: 18px 0 0 4% !important;
    object-fit: contain;
}

/* Center the copyright text from module 112 */
.site-footer .footer-bottom .fl {
    display: block;
    width: 100%;
    padding-top: 16px;
    text-align: center;
}

.site-footer .footer-bottom .pl5 {
    color: #111111;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-size: 10pt;
    line-height: 1.5;
    text-align: center !important;
}

/* RSS module ID 162 sits below the copyright */
.site-footer .footer-bottom .mod-syndicate,
.site-footer .footer-bottom .moduletable:has(a[href*="format=feed"]),
.site-footer .footer-bottom .moduletable:has(a[href*="format=feed&type=rss"]) {
    position: absolute;
    left: 50%;
    bottom: 8px;
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
    text-align: center;
}

.site-footer .footer-bottom .mod-syndicate a,
.site-footer .footer-bottom a[href*="format=feed"],
.site-footer .footer-bottom a[href*="rss"] {
    color: #f58220;
}

/* Back to top */
.site-footer .footer-back-to-top {
    position: absolute;
    top: 50%;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 42px;
    padding: 0;
    transform: translateY(-50%);
    border: 4px solid #075b13;
    border-radius: 4px;
    background: #075b13;
    color: #fff !important;
    font-size: 27px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
}

.site-footer .footer-back-to-top:hover {
    background: #06452f;
    border-color: #06452f;
    color: #fff !important;
}

@media (max-width: 680px) {
    .site-footer {
        min-height: 190px;
    }

    .site-footer .footer-top {
        min-height: 34px;
        padding: 5px 12px;
    }

    .site-footer .footer-top p {
        font-size: 11px;
    }

    .site-footer .footer-bottom {
        min-height: 150px;
        padding: 12px 12px 30px;
    }

    .site-footer .footer-bottom > .mod-custom img,
    .site-footer .footer-bottom > div[id*="mod-custom"] img {
        float: none !important;
        width: 80px !important;
        height: auto !important;
        max-height: 65px;
        margin: 0 auto 8px !important;
    }

    .site-footer .footer-bottom .fl {
        padding-top: 0;
    }

    .site-footer .footer-bottom .pl5 {
        font-size: 9pt;
    }

    .site-footer .footer-back-to-top {
        top: auto;
        right: 12px;
        bottom: 10px;
        transform: none;
    }
}

/* =========================================================
   END - PUSKAS MODERN CLEAN CSS v1.3.8
   ========================================================= */

/* Hide empty footer top after module 90 is unpublished */
.site-footer .footer-top:empty {
    display: none !important;
}

/* Remove unnecessary space above remaining footer */
.site-footer {
    margin-top: 28px;
}

/* Hide Feed Entries text, preserve RSS icon */
.site-footer .mod-syndicate a {
    font-size: 0 !important;
    text-decoration: none !important;
}

.site-footer .mod-syndicate .icon-feed {
    display: inline-block !important;
    font-size: 16px !important;
    color: #f58220 !important;
}


/* ==========================================
   REMOVE "FEED ENTRIES" TEXT
   KEEP RSS ICON
   ========================================== */

.site-footer a[href*="format=feed"],
.site-footer a[href*="type=rss"],
.site-footer .mod-syndicate a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    text-decoration: none !important;
}

/* Draw RSS icon independently of Joomla icon fonts */
.site-footer a[href*="format=feed"]::before,
.site-footer a[href*="type=rss"]::before,
.site-footer .mod-syndicate a::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f58220' d='M4 3v3c7.73 0 14 6.27 14 14h3C21 10.61 13.39 3 4 3zm0 6v3c4.97 0 9 4.03 9 9h3c0-6.63-5.37-12-12-12zm2 7a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/svg%3E");
}

.site-footer a[href*="format=feed"] > *,
.site-footer a[href*="type=rss"] > *,
.site-footer .mod-syndicate a > * {
    display: none !important;
}
