/*
 * Szablon rekonstrukcji dla Fundacji Obowiązek Polski
 * Kompatybilny z Joomla 5
 */

/* Reset & Base */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #3C2619;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23000000' stroke-opacity='0.07' stroke-width='1'%3E%3Cpath d='M0 70 L70 0 M70 140 L140 70 M-10 10 L10 -10 M130 150 L150 130'/%3E%3C/g%3E%3Cg fill='%23d9b06a' fill-opacity='0.05'%3E%3Cpath d='M70 60 l4 8 8 1 -6 6 1 8 -7 -4 -7 4 1 -8 -6 -6 8 -1 z'/%3E%3Ccircle cx='0' cy='0' r='1.6'/%3E%3Ccircle cx='140' cy='140' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    color: #333;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    animation: fop-bg-drift 90s linear infinite;
}

@keyframes fop-bg-drift {
    from { background-position: 0 0; }
    to   { background-position: 280px 280px; }
}

/* --- Subtle motion layer (respects reduced-motion) --- */
@keyframes fop-fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fop-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* The husaria backdrop (tlo.jpg) already carries the red half + parchment,
   so the old flat 50% red overlay is redundant and caused the hard seam. */
#left_bg {
    display: none;
}

#all_bg {
    background: transparent url(../images/tlo.jpg) no-repeat top center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
}

#all {
    margin: 0 auto;
    width: 94%;
    max-width: 1140px;
    padding: 0px;
    text-align: left;
    background: transparent;
}

#back {
    background: transparent;
}

/* Header 0 (Logo & Polecamy) */
#header0 {
    width: 100%;
    height: auto;
    min-height: 205px;
    position: relative;
}

#line {
    width: 100%;
    min-height: 205px;
    height: auto;
    text-align: left;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 18px 0 0;
}

#main_link {
    background: transparent url(../images/logo_fop.png) no-repeat center center;
    background-size: contain;
    width: 465px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 465 / 151;
    display: inline-block;
    align-self: center;
    margin-top: 0;
}

#header0 #polecamy {
    background: transparent url(../images/polecamy_bg.png) no-repeat center center;
    background-size: contain;
    width: 355px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 355 / 47;
    float: none;
    align-self: flex-start;
    margin-top: 4px;
}

/* Main Header Banner */
#header {
    background: transparent url(../images/header.png) no-repeat top center;
    background-size: 112% auto;
    min-height: 120px;
    margin-top: -25px;
    position: relative;
    width: 100%;
}

#chmurka {
    border: 0px;
    display: block;
    height: 25px;
    margin: 0px auto;
    padding: 0px;
    position: relative;
    text-align: center;
    top: 15px;
    width: 130px;
    clear: both;
}

/* Polska Liga Husarska header */
.plh-archive-wrapper {
    background-color: #FFFFFF;
    width: 90%;
    margin: 20px auto 10px auto;
    padding: 20px;
    border-radius: 5px;
}
.plh-archive-wrapper h1 {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: #333;
}

/* Menu (Position-1) */
#header ul.mod-menu,
#header ul.menu,
#header ul.nav {
    position: relative;
    top: 42px;
    padding: 0 10px;
    border: 0;
    text-align: center;
    margin: 0px auto;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 845px;
    box-sizing: border-box;
    font-size: 14px;
    min-height: 40px;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 2px;
}

#header ul.mod-menu li,
#header ul.menu li,
#header ul.nav li {
    margin: 0 !important;
    padding: 0;
    position: relative;
}

#header ul.mod-menu li a,
#header ul.menu li a,
#header ul.nav li a {
    color: #222;
    text-decoration: none;
    padding: 10px 18px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease, transform 0.2s ease;
}

#header ul.mod-menu li a:hover,
#header ul.menu li a:hover,
#header ul.nav li a:hover {
    color: #831204;
}

#header ul.mod-menu li.active a,
#header ul.mod-menu li.current a,
#header ul.menu li.active a,
#header ul.menu li.current a,
#header ul.nav li.active a,
#header ul.nav li.current a {
    color: #831204;
    z-index: 200;
}

/* Husaria cross indicator — ONLY under top-level items (never inside dropdowns).
   Drops in on hover and stays under the selected top item as a marker. */
#header ul.mod-menu > li > a::before,
#header ul.menu > li > a::before,
#header ul.nav > li > a::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 30px;
    height: 21px;
    margin-left: -15px;
    background: url(../images/cross.png) no-repeat center center;
    background-size: contain;
    opacity: 0;
    transform: translateY(-7px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform-origin: center bottom;
    pointer-events: none;
}

#header ul.mod-menu > li > a:hover::before,
#header ul.menu > li > a:hover::before,
#header ul.nav > li > a:hover::before,
#header ul.mod-menu > li.active > a::before,
#header ul.mod-menu > li.current > a::before,
#header ul.menu > li.active > a::before,
#header ul.menu > li.current > a::before,
#header ul.nav > li.active > a::before,
#header ul.nav > li.current > a::before {
    opacity: 1;
    transform: translateY(0);
}

/* Selected top item keeps the cross alive with a gentle sway */
#header ul.mod-menu > li.active > a::before,
#header ul.mod-menu > li.current > a::before,
#header ul.menu > li.active > a::before,
#header ul.menu > li.current > a::before,
#header ul.nav > li.active > a::before,
#header ul.nav > li.current > a::before {
    animation: fop-cross-sway 2.4s ease-in-out infinite;
}

@keyframes fop-cross-sway {
    0%   { transform: rotate(-7deg) translateY(0); }
    50%  { transform: rotate(7deg) translateY(-2px); }
    100% { transform: rotate(-7deg) translateY(0); }
}

/* Dropdown submenus — refined husaria panel */
#header ul.mod-menu li ul,
#header ul.menu li ul,
#header ul.nav li ul {
    opacity: 0;
    visibility: hidden;
    transition: none;
    display: block;
    text-align: left;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 300;
    padding: 8px;
    margin: 0;
    width: 220px;
    background: linear-gradient(180deg, #9d1f29 0%, #7a0f17 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 3px solid #e6c074;
    box-shadow: 0 18px 40px rgba(20, 8, 5, 0.42);
}

/* mod_menu (menu.min.js) hides submenus via the [hidden] attribute / inline
   style and opens them on click. Override that so they ALSO open on hover. */
#header ul.mod-menu li > ul[hidden],
#header ul.menu li > ul[hidden],
#header ul.nav li > ul[hidden] {
    display: block;
}

#header ul.mod-menu li:hover > ul,
#header ul.menu li:hover > ul,
#header ul.nav li:hover > ul {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#header ul.mod-menu ul li,
#header ul.menu ul li,
#header ul.nav ul li {
    width: 100%;
}

/* divider between items */
#header ul.mod-menu ul li + li,
#header ul.menu ul li + li,
#header ul.nav ul li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

#header ul.mod-menu ul li a,
#header ul.menu ul li a,
#header ul.nav ul li a {
    color: #f3e7d8 !important;
    text-shadow: none !important;
    padding: 9px 14px !important;
    width: 100%;
    box-sizing: border-box;
    display: block;
    font-size: 13px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
    border-radius: 7px;
    border-left: 3px solid transparent;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

#header ul.mod-menu ul li a:hover,
#header ul.menu ul li a:hover,
#header ul.nav ul li a:hover {
    background: rgba(0, 0, 0, 0.22);
    border-left-color: #e6c074;
    color: #fff !important;
    transform: translateX(3px);
}

#header ul.mod-menu ul li.active > a,
#header ul.mod-menu ul li.current > a,
#header ul.menu ul li.active > a,
#header ul.menu ul li.current > a,
#header ul.nav ul li.active > a,
#header ul.nav ul li.current > a {
    background: rgba(0, 0, 0, 0.28);
    border-left-color: #e6c074;
    color: #fff !important;
}

/* Optional submenu heading (e.g. the parent label shown at the top) */
#header ul.mod-menu ul li > span,
#header ul.menu ul li > span,
#header ul.nav ul li > span,
#header ul.nav ul li.mod-menu__heading > * {
    display: block;
    padding: 6px 14px 8px;
    font-size: 10.5px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
}

/* Content Area Layout */
#contentarea,
#contentarea2 {
    background: transparent url(../images/content.png) repeat-y top center;
    background-size: 112% auto;
    z-index: 5;
    position: relative;
    padding: 10px 48px 24px !important;
    margin: 0;
    box-sizing: border-box;
}

#contentarea2 {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

#wrapper {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

#wrapper2 {
    width: 100%;
}

#main {
    padding: 4px 0px 20px 0px;
    position: relative;
    min-height: 420px;
    color: #333;
    animation: fop-fade-in 0.5s ease both;
}

#right {
    width: 312px;
    flex-shrink: 0;
    margin-top: 10px;
}

#right .moduletable {
    margin-bottom: 20px;
}

/* Slider */
#slider0 {
    width: 1038px;
    height: 542px;
    background: transparent url(../images/slider.png) no-repeat bottom right;
    margin-bottom: -130px;
    margin-left: -55px;
    margin-top: -300px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* General Typography */
h1, h2, h3, h4, h5, h6 {
    color: #831204;
    font-family: Tahoma, Arial, sans-serif;
}

a {
    color: #831204;
    text-decoration: none;
}

a:hover {
    color: #000;
}

/* Responsive media fixes (Prevent image/video overflows) */
img {
    max-width: 100%;
    height: auto;
}

iframe, video, embed, object {
    max-width: 100%;
}

.blog-item img,
.item-content img,
.article-details img,
#main img {
    max-width: 100% !important;
    height: auto !important;
}

.blog-item iframe,
.item-content iframe,
.article-details iframe,
#main iframe {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

/* Blog items responsive grid */
.blog-items {
    margin-bottom: 30px;
}

.blog-items.columns-2,
.blog-items.masonry-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.blog-items.columns-3,
.blog-items.masonry-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.blog-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(60, 38, 25, 0.1);
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    animation: fop-rise 0.5s ease both;
}

.blog-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(60, 38, 25, 0.14);
}

/* Gentle stagger so cards cascade in instead of popping together */
.blog-item:nth-child(2)  { animation-delay: 0.06s; }
.blog-item:nth-child(3)  { animation-delay: 0.12s; }
.blog-item:nth-child(4)  { animation-delay: 0.18s; }
.blog-item:nth-child(5)  { animation-delay: 0.24s; }
.blog-item:nth-child(6)  { animation-delay: 0.30s; }
.blog-item:nth-child(n+7) { animation-delay: 0.34s; }

/* Intro image (figure.item-image) — turn raw floats into tidy cover thumbnails */
.blog-item figure.item-image,
.blog-item .item-image {
    float: none;
    margin: -20px -20px 16px -20px; /* bleed to the card edges */
    overflow: hidden;
    line-height: 0;
}

.blog-item figure.item-image img,
.blog-item .item-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-item:hover figure.item-image img,
.blog-item:hover .item-image img {
    transform: scale(1.04);
}

.blog-item h2.item-title, 
.blog-item h2 a {
    font-size: 18px;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
    color: #831204;
}

.blog-item h2 a:hover {
    color: #000;
}

/* Article metadata (date, author, category) */
.article-info {
    font-size: 11px;
    color: #777;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

.article-info dd {
    display: inline-block;
    margin: 0 12px 0 0;
    padding: 0;
}

.article-info dd span {
    font-weight: normal;
}

/* Readmore link */
.readmore {
    margin-top: 15px;
}

.readmore a {
    display: inline-block;
    background-color: #831204;
    color: #fff !important;
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
}

.readmore a:hover {
    background-color: #3C2619;
    text-decoration: none;
}

/* Polonise Joomla's "Read more: ..." label without touching language packs */
.readmore a {
    font-size: 0 !important;
    line-height: 1 !important;
}

.readmore a .icon-chevron-right,
.readmore a [class^="icon-"] {
    display: none !important;
}

.readmore a::after {
    content: "Czytaj więcej \2192";
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.5px;
}

/* "More articles" list (blog links) — modern two-column list */
.items-more {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 2px solid rgba(131, 18, 4, 0.12);
}

.items-more::before {
    content: "Więcej z aktualności";
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: #831204;
    margin-bottom: 16px;
}

.com-content-blog__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 22px;
}

.com-content-blog__link {
    margin: 0;
    padding: 0;
}

.com-content-blog__link a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border-radius: 9px;
    color: #3a2a1e;
    font-size: 13.5px;
    line-height: 1.4;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid transparent;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.com-content-blog__link a::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: url(../images/cross.png) no-repeat center center;
    background-size: contain;
    opacity: 0.5;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.com-content-blog__link a:hover {
    background: #fff;
    border-color: rgba(131, 18, 4, 0.16);
    color: #831204;
    box-shadow: 0 5px 16px rgba(60, 38, 25, 0.09);
    transform: translateX(3px);
}

.com-content-blog__link a:hover::before {
    opacity: 1;
    transform: scale(1.12) rotate(-6deg);
}

/* Navigation row: pagination + counter */
.com-content-category-blog__navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.com-content-category-blog__counter {
    margin: 0;
    float: none !important;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #8a7461;
    background: rgba(131, 18, 4, 0.06);
    border-radius: 20px;
}

/* Pagination styling */
.com-content-category-blog__pagination {
    width: 100%;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 7px;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link,
.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid #e3d8c6;
    color: #831204;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    background: #fff;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.pagination .active .page-link,
.pagination li.active span,
.pagination li.active a {
    background: linear-gradient(135deg, #b21f2a, #831204);
    color: #fff !important;
    border-color: #831204;
    box-shadow: 0 5px 14px rgba(131, 18, 4, 0.32);
}

.pagination li a:hover {
    background: #f7efe3;
    border-color: #c9a25a;
    color: #831204;
    transform: translateY(-2px);
}

.pagination .disabled .page-link,
.pagination li.disabled span {
    color: #c9bdab;
    background: #f6f1ea;
    border-color: #ece3d4;
    cursor: not-allowed;
}

/* Guarantee visible arrows even if the icon font isn't loaded */
.pagination [class*="icon-angle"]::before {
    font-family: inherit !important;
    font-style: normal;
    font-size: 18px;
    line-height: 1;
}

.pagination .icon-angle-double-left::before { content: "\00AB"; }
.pagination .icon-angle-left::before        { content: "\2039"; }
.pagination .icon-angle-right::before       { content: "\203A"; }
.pagination .icon-angle-double-right::before { content: "\00BB"; }

@media (max-width: 600px) {
    .com-content-blog__links {
        grid-template-columns: 1fr;
    }
}

/* Article page navigation (pagebreak prev/next & article navigation) */
.pager,
.pagenav,
.pagenavigation {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 14px;
    flex-wrap: wrap;
    list-style: none;
    padding: 18px 0 0;
    margin: 30px 0 6px;
    border-top: 1px solid #eadfce;
}

.pager li,
.pagenav li,
.pagenavigation li {
    margin: 0;
    list-style: none;
}

.pager a,
.pagenav a,
.pagenavigation a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1.5px solid #e3d8c6;
    color: #831204 !important;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
    padding: 11px 18px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pager a:hover,
.pagenav a:hover,
.pagenavigation a:hover {
    background: linear-gradient(135deg, #b21f2a, #831204);
    color: #fff !important;
    border-color: #831204;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(131, 18, 4, 0.28);
}

/* push "next" to the right edge */
.pager .next,
.pagenav .pagenav-next,
.pagenavigation .next {
    margin-left: auto;
    text-align: right;
}

/* hide broken icon-font glyphs, draw our own arrows */
.pager [class*="icon-"],
.pagenav [class*="icon-"],
.pagenavigation [class*="icon-"] {
    display: none;
}

.pager .previous a::before,
.pagenav .pagenav-prev a::before,
.pagenavigation .previous a::before {
    content: "\2190";
    font-size: 16px;
    line-height: 1;
}

.pager .next a::after,
.pagenav .pagenav-next a::after,
.pagenavigation .next a::after {
    content: "\2192";
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 520px) {
    .pager,
    .pagenav,
    .pagenavigation {
        flex-direction: column;
    }
    .pager a,
    .pagenav a,
    .pagenavigation a {
        width: 100%;
        justify-content: center;
    }
}

/* Payments / donation module styling */
#payments-wrapper {
    width: 100%;
    margin-top: 30px;
}

#payments-wrapper .mod-custom {
    background: linear-gradient(135deg, #fbf7f0, #f1e9da);
    border: 1px solid rgba(60, 38, 25, 0.12);
    border-radius: 14px;
    padding: 26px 30px 30px;
    box-shadow: 0 10px 26px rgba(60, 38, 25, 0.09);
}

#darowizna {
    margin: 0 0 4px;
    font-size: 23px;
}

#payments-wrapper .mod-custom > p {
    margin: 0 0 18px;
    color: #6b5645;
    font-size: 13.5px;
}

#payform {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

#payform input[type="text"],
#payform input[type="email"],
#payform input[type="number"],
#payform select {
    flex: 1 1 175px;
    min-width: 0;
    padding: 12px 14px;
    border: 1.5px solid #d8cdbb;
    border-radius: 9px;
    background: #fff;
    font-size: 14px;
    color: #3a241a;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#payform input::placeholder { color: #a8988a; }

#payform input:focus,
#payform select:focus {
    outline: none;
    border-color: #931A23;
    box-shadow: 0 0 0 3px rgba(147, 26, 35, 0.16);
}

#payform .acceptance {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 6px 0 2px;
    font-size: 13px;
    color: #5a4636;
}

#payform .acceptance a {
    color: #931A23;
    font-weight: 700;
}

#payform .acceptance input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #931A23;
    flex-shrink: 0;
    cursor: pointer;
}

#payform button[type="submit"] {
    flex: 0 0 auto;
    margin-top: 4px;
    background: linear-gradient(135deg, #b21f2a, #831204);
    color: #fff;
    border: none;
    padding: 13px 30px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(131, 18, 4, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#payform button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(131, 18, 4, 0.42);
    background: linear-gradient(135deg, #c4232f, #9a1505);
}

/* Footer Section */
#footer-outer {
    background:
        radial-gradient(1200px 300px at 50% 0%, rgba(147, 26, 35, 0.35), transparent 70%),
        linear-gradient(180deg, #34211733 0%, #2a1b12 22%, #21140d 100%);
    width: 100%;
    color: #e9e0d5;
    font-size: 13px;
    border-top: 3px solid #c9a25a;
    padding-top: 36px;
    position: relative;
}

#footer-outer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23d9b06a' fill-opacity='0.045'%3E%3Cpath d='M70 60 l4 8 8 1 -6 6 1 8 -7 -4 -7 4 1 -8 -6 -6 8 -1 z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.8;
}

#footer-outer > * {
    position: relative;
    z-index: 1;
}

#footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 48px;
}

#bottom {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

#bottom .box {
    flex: 1;
}

#footer-sub {
    border-top: 1px solid #444;
    padding: 20px 40px;
}

#footer {
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
}

.custom-bottom-banner {
    margin: 0 auto 28px;
    text-align: center;
}

.custom-bottom-banner img {
    width: 100%;
    max-width: 540px;
    height: auto;
    border-radius: 6px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 24px;
}

.custom_left, .custom-right {
    width: 100%;
    max-width: 281px;
    display: flex;
    justify-content: center;
}

.newsletter-col {
    position: relative;
    width: 100%;
    max-width: 281px;
    text-align: center;
}

/* Acymailing Module Custom Background */
.acym_module {
    background: transparent url(../images/newsletter_bg2.png) no-repeat !important;
    height: 180px;
    width: 281px;
    position: relative;
    display: block;
    margin: 0 auto;
}

.acym_module .acyfield_1 {
    position: absolute;
    top: 80px;
    left: 100px;
}

.acym_module .acyfield_1 input {
    border: none;
    background: transparent;
    font-size: 11px;
    padding: 2px 7px;
    color: #333;
}

.acym_module .acyfield_2 {
    position: absolute;
    top: 110px;
    left: 100px;
}

.acym_module .acyfield_2 input {
    border: none;
    background: transparent;
    font-size: 11px;
    padding: 2px 7px;
    color: #333;
}

.acysubbuttons .subbutton {
    position: absolute;
    top: 140px;
    right: 25px;
    background: transparent;
    border: none;
    color: transparent;
    cursor: pointer;
    width: 80px;
    height: 30px;
}

.privacy-link {
    display: inline-block;
    margin-top: 14px;
    color: #e6c074 !important;
    font-size: 13px;
    text-align: center;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.privacy-link:hover {
    color: #f3dca6 !important;
    border-bottom-color: #e6c074;
}

/* Partner Logos */
.partner-logos {
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid rgba(201, 162, 90, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
}

.partner-logos::before {
    content: "Nasi partnerzy";
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #c9a25a;
}

.partner-logos img {
    max-height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.partner-logos a:hover img {
    opacity: 1;
    transform: translateY(-3px);
}

/* =========================================================
   Single article view — cohesive content & images
   ========================================================= */
.item-page,
.com-content-article {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 8px;
    padding: 28px 32px;
    box-shadow: 0 6px 22px rgba(60, 38, 25, 0.08);
    border: 1px solid rgba(60, 38, 25, 0.08);
    box-sizing: border-box;
    animation: fop-fade-in 0.5s ease both;
}

.item-page > h1,
.item-page .page-header h1,
.item-page .page-header h2,
.com-content-article .page-header h1 {
    margin-top: 0;
    line-height: 1.25;
    border-bottom: 3px solid #831204;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.item-page p,
.com-content-article p {
    line-height: 1.7;
    margin: 0 0 1.1em 0;
}

.item-page h2,
.item-page h3,
.item-page h4,
.com-content-article h2,
.com-content-article h3 {
    line-height: 1.3;
    margin: 1.6em 0 0.6em 0;
}

/* Article images & figures — consistent framing across the site */
.item-page img,
.com-content-article img,
.blog-item .item-content img {
    border-radius: 6px;
}

.item-page figure,
.com-content-article figure {
    margin: 1.4em 0;
}

.item-page figure.item-image,
.com-content-article figure.item-image {
    margin: 0 0 1.4em 0;
}

.item-page figure img,
.com-content-article figure img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 6px 18px rgba(60, 38, 25, 0.12);
}

.item-page figure figcaption,
.com-content-article figure figcaption {
    font-size: 12px;
    color: #777;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* Inline images that authors floated in the editor */
.item-page img.float-start,
.item-page img.float-left,
.com-content-article img.float-start,
.com-content-article img.float-left {
    float: left;
    margin: 4px 22px 14px 0;
    max-width: 45%;
}

.item-page img.float-end,
.item-page img.float-right,
.com-content-article img.float-end,
.com-content-article img.float-right {
    float: right;
    margin: 4px 0 14px 22px;
    max-width: 45%;
}

/* Quotes, lists, code */
.item-page blockquote,
.com-content-article blockquote {
    margin: 1.4em 0;
    padding: 14px 22px;
    border-left: 4px solid #831204;
    background: rgba(147, 26, 35, 0.05);
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #4a3528;
}

.item-page ul,
.item-page ol,
.com-content-article ul,
.com-content-article ol {
    line-height: 1.7;
    padding-left: 22px;
}

.item-page li,
.com-content-article li {
    margin-bottom: 6px;
}

/* Tables — keep them from blowing out narrow screens */
.item-page table,
.com-content-article table,
#main table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    display: block;
    overflow-x: auto;
}

.item-page table th,
.item-page table td,
.com-content-article table th,
.com-content-article table td,
#main table th,
#main table td {
    border: 1px solid #e3ddd6;
    padding: 8px 12px;
    text-align: left;
}

.item-page table th,
.com-content-article table th,
#main table th {
    background: #f3efe9;
    color: #5a3a25;
    font-weight: 700;
}

/* Banners inside content / footer — gentle hover lift */
.custom-bottom-banner a,
.custom_left a,
.custom-right a {
    display: inline-block;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.custom-bottom-banner a:hover,
.custom_left a:hover,
.custom-right a:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

.custom-bottom-banner img,
.custom_left img,
.custom-right img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   Highlighted slogan (replaces flat sentencja.png)
   ========================================================= */
.fop-slogan {
    position: absolute;
    right: 0;
    bottom: 6px;
    max-width: 410px;
    text-align: right;
    padding: 14px 18px 14px 22px;
    border-right: 4px solid #c9a25a;
    border-radius: 8px 0 0 8px;
    background: linear-gradient(135deg, rgba(247, 240, 228, 0.86), rgba(238, 226, 205, 0.78));
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    box-shadow: 0 8px 22px rgba(40, 24, 14, 0.18);
    z-index: 3;
    animation: fop-slogan-in 0.9s ease both;
}

.fop-slogan::before {
    content: "\201E";
    position: absolute;
    top: -14px;
    left: 8px;
    font-family: Georgia, serif;
    font-size: 60px;
    line-height: 1;
    color: rgba(201, 162, 90, 0.55);
    pointer-events: none;
}

.fop-slogan__q {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 14.5px;
    line-height: 1.55;
    color: #2e1c12;
}

.fop-slogan__author {
    display: block;
    margin-top: 7px;
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #8a5a1f, #e6c074, #8a5a1f);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fop-shimmer 4.5s linear infinite;
}

@keyframes fop-shimmer {
    to { background-position: 200% center; }
}

@keyframes fop-slogan-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

/* =========================================================
   Featured content slider (recent articles)
   ========================================================= */
.fop-slider {
    position: relative;
    margin: 0 0 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(60, 38, 25, 0.22);
    background: #2a1b12;
    animation: fop-fade-in 0.6s ease both;
}

.fop-slider__track {
    position: relative;
    height: 380px;
}

.fop-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}

.fop-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.fop-slide__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
}

.fop-slide.is-active .fop-slide__img {
    animation: fop-kenburns 7s ease-out both;
}

@keyframes fop-kenburns {
    from { transform: scale(1.13); }
    to   { transform: scale(1); }
}

.fop-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(20, 10, 6, 0.88) 0%, rgba(20, 10, 6, 0.6) 45%, rgba(20, 10, 6, 0.05) 100%);
}

.fop-slide__body {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    max-width: 64%;
    padding: 32px 38px;
    color: #fff;
}

.fop-slide.is-active .fop-slide__body {
    animation: fop-slide-up 0.7s 0.15s ease both;
}

@keyframes fop-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.fop-slide__tag {
    display: inline-block;
    background: #931A23;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 13px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.fop-slide__title {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.22;
    color: #fff;
}

.fop-slide__title a {
    color: #fff;
}

.fop-slide__title a:hover {
    color: #f0d28a;
}

.fop-slide__excerpt {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.fop-slide__more {
    display: inline-block;
    background: #c9a25a;
    color: #2a1b12 !important;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.fop-slide__more:hover {
    background: #f0d28a;
    transform: translateX(4px);
}

.fop-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, color 0.2s ease;
}

.fop-slider__nav:hover {
    background: rgba(201, 162, 90, 0.95);
    color: #2a1b12;
}

.fop-slider__nav--prev { left: 14px; }
.fop-slider__nav--next { right: 14px; }

.fop-slider__dots {
    position: absolute;
    bottom: 16px;
    right: 24px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.fop-slider__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.2s ease, transform 0.2s ease;
}

.fop-slider__dot.is-active {
    background: #c9a25a;
    transform: scale(1.25);
}

/* =========================================================
   FOP article components — reusable building blocks for
   rich Joomla articles, matching the site's husaria style.
   Use these class names inside any article's code editor.
   ========================================================= */
.fop-badge {
    display: inline-block;
    background: #931A23;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Article hero — rendered under the menu on single-article view */
.fop-article-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 0 26px;
    color: #fff;
    background-color: #3C2619;
    background-size: cover;
    background-position: center 32%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    animation: fop-rise 0.5s ease both;
}

.fop-article-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(60, 38, 25, 0.28) 0%, rgba(60, 38, 25, 0.62) 55%, rgba(60, 38, 25, 0.86) 100%);
}

.fop-article-hero__body {
    position: relative;
    padding: 40px 42px 34px;
}

.fop-article-hero__title {
    margin: 16px 0 12px;
    color: #fff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 32px;
    line-height: 1.2;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
}

.fop-article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    opacity: 0.92;
}

.fop-article-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.fop-article-hero__meta svg { width: 15px; height: 15px; }

/* With the hero present, the article's own title/date would duplicate it */
.fop-has-hero .item-page > .page-header,
.fop-has-hero .item-page .article-info {
    display: none;
}

@media (max-width: 640px) {
    .fop-article-hero__body { padding: 28px 22px 24px; }
    .fop-article-hero__title { font-size: 24px; }
}

.fop-lead {
    font-size: 17px;
    line-height: 1.65;
    color: #4a3526;
    border-left: 4px solid #931A23;
    background: rgba(147, 26, 35, 0.05);
    padding: 14px 20px;
    border-radius: 0 8px 8px 0;
    margin: 0 0 24px;
}

h2.fop-sec,
.fop-sec {
    font-family: Georgia, 'Times New Roman', serif;
    color: #831204;
    font-size: 22px;
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(131, 18, 4, 0.18);
    display: flex;
    align-items: center;
    gap: 12px;
}

.fop-sec::before {
    content: "";
    width: 24px;
    height: 17px;
    flex-shrink: 0;
    background: url(../images/cross.png) no-repeat center center;
    background-size: contain;
}

.fop-guest {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-left: 5px solid #c9a25a;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 0 0 10px;
    box-shadow: 0 6px 18px rgba(60, 38, 25, 0.07);
}

.fop-guest .fop-guest__ico { font-size: 30px; line-height: 1; flex-shrink: 0; }

/* Timeline / harmonogram */
.fop-tlblock {
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(60, 38, 25, 0.06);
}

.fop-tlhead {
    background: linear-gradient(135deg, #931A23, #831204);
    color: #fff;
    padding: 12px 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fop-time {
    background: #e6c074;
    color: #4a2d12;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.fop-tllist { list-style: none; margin: 0; padding: 14px 22px; }

.fop-tllist li {
    position: relative;
    padding: 8px 0 8px 26px;
    border-bottom: 1px dashed #e3dccc;
    line-height: 1.55;
}

.fop-tllist li:last-child { border-bottom: 0; }

.fop-tllist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #931A23;
    box-shadow: 0 0 0 3px rgba(147, 26, 35, 0.18);
}

.fop-tllist li b { color: #831204; }

.fop-versus {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    background: rgba(147, 26, 35, 0.06);
    border-radius: 8px;
    padding: 14px;
    font-weight: 700;
    color: #34261c;
}

.fop-versus .fop-who { text-align: center; }
.fop-versus .fop-who small { display: block; font-weight: 600; color: #7a6453; font-size: 12px; }
.fop-versus .fop-vs { color: #931A23; font-family: Georgia, serif; font-size: 22px; }

/* Info box */
.fop-infobox {
    background: linear-gradient(135deg, #fbf6ec, #f0e6d2);
    border: 1px solid rgba(201, 162, 90, 0.5);
    border-radius: 12px;
    padding: 24px;
    margin: 8px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 26px;
}

.fop-irow { display: flex; gap: 12px; align-items: flex-start; }

.fop-ic {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #931A23;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.fop-ic svg { width: 20px; height: 20px; }
.fop-k { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #8a6f53; }
.fop-v { font-weight: 700; color: #34261c; line-height: 1.35; }

.fop-free {
    grid-column: 1 / -1;
    text-align: center;
    background: linear-gradient(135deg, #b21f2a, #831204);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 14px;
    border-radius: 10px;
    text-transform: uppercase;
}

.fop-partners { font-size: 14px; color: #5a463a; }
.fop-partners p { margin: 0 0 10px; }
.fop-partners b { color: #831204; }

.fop-cta { margin-top: 28px; text-align: center; }

.fop-cta a {
    display: inline-block;
    background: linear-gradient(135deg, #b21f2a, #831204);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 14px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(131, 18, 4, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fop-cta a:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(131, 18, 4, 0.45); }

@media (max-width: 640px) {
    .fop-infobox { grid-template-columns: 1fr; }
}

/* Responsive Styles */
@media (max-width: 960px) {
    #all {
        max-width: 100%;
        padding: 0 10px;
    }
    
    /* Mobile menu: centred pill bar that wraps — every item stays visible */
    #header ul.mod-menu,
    #header ul.menu,
    #header ul.nav {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 12px 12px;
        top: 0;
        border-bottom: none;
    }

    #header ul.mod-menu li,
    #header ul.menu li,
    #header ul.nav li {
        flex: 0 0 auto;
    }

    #header ul.mod-menu li a,
    #header ul.menu li a,
    #header ul.nav li a {
        background: rgba(147, 26, 35, 0.92);
        color: #fff !important;
        border-radius: 20px;
        padding: 8px 16px;
        font-size: 13px;
        font-weight: 600;
        text-shadow: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        border: 1px solid rgba(255,255,255,0.12);
        white-space: nowrap;
        display: inline-block;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

    /* The desktop underline pseudo doesn't belong on pills */
    #header ul.mod-menu li a::after,
    #header ul.menu li a::after,
    #header ul.nav li a::after {
        display: none;
    }

    #header ul.mod-menu li a:active,
    #header ul.menu li a:active,
    #header ul.nav li a:active {
        transform: scale(0.96);
    }

    #header ul.mod-menu li.active a,
    #header ul.mod-menu li.current a,
    #header ul.menu li.active a,
    #header ul.menu li.current a,
    #header ul.nav li.active a,
    #header ul.nav li.current a {
        background: #831204;
        color: #fff !important;
        border-color: rgba(255,255,255,0.35);
        box-shadow: 0 2px 10px rgba(131,18,4,0.4);
    }
    
    #slider0 {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1038 / 542;
        margin-left: 0;
        margin-right: 0;
        margin-top: 20px;
        margin-bottom: 20px;
        background-size: contain;
    }
    
    #header {
        min-height: auto;
        height: auto;
        background: transparent url(../images/header.png) no-repeat top left;
        background-size: cover;
        padding-bottom: 15px;
    }
    
    /* Responsive white content area overlay */
    #contentarea,
    #contentarea2 {
        padding: 15px 20px !important;
        background: #ffffff !important;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        border-radius: 8px;
    }
    
    #contentarea2 {
        flex-direction: column;
    }
    
    #right {
        width: 100%;
        text-align: center;
    }
    
    #bottom {
        flex-direction: column;
    }
    
    .footer-columns {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .custom_left, .custom-right, .newsletter-col {
        width: 100% !important;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    #left_bg {
        display: none;
    }

    body {
        background: #3C2619;
    }

    /* iOS/Android ignore or jank on fixed backgrounds — use scroll + cover */
    #all_bg {
        background-attachment: scroll;
        background-size: cover;
    }

    /* Slogan: from floating corner quote to a normal stacked block */
    .fop-slogan {
        position: static;
        max-width: 100%;
        text-align: center;
        border-right: none;
        border-top: 3px solid #c9a25a;
        padding: 12px 14px 0;
        margin: 6px auto 0;
    }

    /* Slider: shorter, full-width text panel */
    .fop-slider__track {
        height: 300px;
    }

    .fop-slide__overlay {
        background: linear-gradient(0deg, rgba(20, 10, 6, 0.92) 0%, rgba(20, 10, 6, 0.5) 60%, rgba(20, 10, 6, 0.15) 100%);
    }

    .fop-slide__body {
        max-width: 100%;
        padding: 20px 22px;
    }

    .fop-slide__title {
        font-size: 20px;
    }

    .fop-slide__excerpt {
        display: none;
    }

    .fop-slider__nav {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .blog-items.columns-2,
    .blog-items.masonry-2,
    .blog-items.columns-3,
    .blog-items.masonry-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Tighter article padding + readable line length on phones */
    .item-page,
    .com-content-article {
        padding: 20px 18px;
    }

    .item-page > h1,
    .item-page .page-header h1,
    .item-page .page-header h2,
    .com-content-article .page-header h1 {
        font-size: 22px;
    }

    /* Don't let editor-floated images crush the text on narrow screens */
    .item-page img.float-start,
    .item-page img.float-left,
    .item-page img.float-end,
    .item-page img.float-right,
    .com-content-article img.float-start,
    .com-content-article img.float-left,
    .com-content-article img.float-end,
    .com-content-article img.float-right {
        float: none;
        display: block;
        max-width: 100%;
        margin: 1em auto;
    }
}

@media (max-width: 480px) {
    #header0,
    #line {
        min-height: 0;
    }

    #header ul.mod-menu li a,
    #header ul.menu li a,
    #header ul.nav li a {
        padding: 7px 13px;
        font-size: 12px;
    }

    .blog-item {
        padding: 16px;
    }

    .blog-item figure.item-image,
    .blog-item .item-image {
        margin: -16px -16px 14px -16px;
    }

    .blog-item figure.item-image img,
    .blog-item .item-image img {
        height: 170px;
    }
}

/* =========================================================
   Floating AI live-chat assistant
   ========================================================= */
.fop-chat-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    width: 62px;
    height: 62px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(135deg, #b21f2a, #831204);
    color: #fff;
    box-shadow: 0 12px 30px rgba(131, 18, 4, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fop-chat-toggle:hover {
    transform: translateY(-3px) scale(1.05);
}

.fop-chat-toggle svg {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
}

.fop-chat-toggle::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(178, 31, 42, 0.55);
    animation: fop-chat-pulse 2.4s ease-out infinite;
}

@keyframes fop-chat-pulse {
    0%   { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.7); opacity: 0; }
}

.fop-chat-ico-close { display: none; }
.fop-chat-toggle.is-open .fop-chat-ico-chat { display: none; }
.fop-chat-toggle.is-open .fop-chat-ico-close { display: block; }
.fop-chat-toggle.is-open::after { display: none; }

.fop-chat-panel {
    position: fixed;
    right: 24px;
    bottom: 98px;
    z-index: 9999;
    width: 372px;
    max-width: calc(100vw - 32px);
    height: 524px;
    max-height: calc(100vh - 130px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 26px 64px rgba(20, 10, 6, 0.38);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.fop-chat-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.fop-chat-head {
    background: linear-gradient(135deg, #931A23, #6e0f17);
    color: #fff;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fop-chat-head__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 2px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fop-chat-head__avatar svg {
    width: 24px;
    height: 24px;
    color: #f0d28a;
}

.fop-chat-head__t {
    flex: 1;
    line-height: 1.25;
}

.fop-chat-head__t b {
    font-size: 15px;
    display: block;
}

.fop-chat-head__t span {
    font-size: 11.5px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fop-chat-head__t span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #46d17a;
    animation: fop-online 2s infinite;
}

@keyframes fop-online {
    0%   { box-shadow: 0 0 0 0 rgba(70, 209, 122, 0.6); }
    70%  { box-shadow: 0 0 0 6px rgba(70, 209, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(70, 209, 122, 0); }
}

.fop-chat-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    opacity: 0.85;
    padding: 0 4px;
}

.fop-chat-close:hover { opacity: 1; }

.fop-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f6f1ea;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fop-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 15px;
    font-size: 13.5px;
    line-height: 1.5;
    animation: fop-fade-in 0.3s ease both;
}

.fop-msg--bot {
    align-self: flex-start;
    background: #fff;
    color: #3a2a1e;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(60, 38, 25, 0.08);
}

.fop-msg--user {
    align-self: flex-end;
    background: linear-gradient(135deg, #b21f2a, #831204);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.fop-msg a { color: #931A23; font-weight: 700; }
.fop-msg--user a { color: #ffe9c2; }

.fop-msg__link {
    display: inline-block;
    margin-top: 4px;
    background: #c9a25a;
    color: #2a1b12 !important;
    padding: 7px 13px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.fop-msg__link:hover { background: #f0d28a; transform: translateX(3px); }

.fop-chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 2px;
    animation: fop-fade-in 0.3s ease both;
}

.fop-chip {
    background: #fff;
    border: 1.5px solid #e0d5c4;
    color: #5a3a25;
    border-radius: 18px;
    padding: 7px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fop-chip:hover {
    background: #931A23;
    color: #fff;
    border-color: #931A23;
    transform: translateY(-1px);
}

.fop-typing {
    align-self: flex-start;
    display: flex;
    gap: 4px;
    padding: 13px 14px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(60, 38, 25, 0.08);
}

.fop-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c9a25a;
    animation: fop-typing 1.2s infinite;
}

.fop-typing span:nth-child(2) { animation-delay: 0.2s; }
.fop-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes fop-typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

.fop-chat-foot {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #eadfce;
    background: #fff;
}

.fop-chat-foot input {
    flex: 1;
    min-width: 0;
    border: 1.5px solid #ddd1bf;
    border-radius: 22px;
    padding: 10px 16px;
    font-size: 13.5px;
    outline: none;
    color: #3a241a;
    transition: border-color 0.2s ease;
}

.fop-chat-foot input:focus { border-color: #931A23; }

.fop-chat-foot button {
    border: none;
    background: linear-gradient(135deg, #b21f2a, #831204);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fop-chat-foot button svg { width: 20px; height: 20px; }

.fop-chat-disclaimer {
    font-size: 10.5px;
    color: #a89685;
    text-align: center;
    padding: 0 12px 10px;
    background: #fff;
}

@media (max-width: 480px) {
    .fop-chat-panel {
        right: 8px;
        left: 8px;
        width: auto;
        bottom: 84px;
        height: 72vh;
    }

    .fop-chat-toggle {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fop-chat-toggle::after { animation: none; }
}
