/* ==========================================
   1. FORCE BLACK ROOT & GLOBAL STYLE
   ========================================== */
:root {
    --cassiopeia-color-primary: #000000 !important;
    --cassiopeia-color-hover: #c8a26a !important;
    --cassiopeia-color-link: #c8a26a !important;
}

body, html, .site-wrapper {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* ==========================================
   2. HEADER & LOGO CENTER
   ========================================== */
.header, .container-header, .header-content {
    background-color: #000000 !important;
    background-image: none !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #1a1a1a !important;
}

.navbar-brand {
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.navbar-brand img {
    max-height: 60px !important;
    width: auto !important;
}

.navbar-toggler {
    border-color: #c8a26a !important;
    background-color: transparent !important;
    margin-top: 10px !important;
}

/* ==========================================
   3. NEW MAGAZINE BLOG LAYOUT
   ========================================== */
.blog-items, .items-row, .com-content-category-blog__items {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    background: #000000 !important;
    padding: 10px 0 !important;
    align-items: stretch !important;
}

.blog-items .item-leading,
.blog-items > :first-child {
    grid-column: span 1 !important;
    width: 100% !important;
}

.com-content-category-blog__item {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #111111 !important;
    border: 1px solid #c8a26a !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.com-content-category-blog__item .item-image img,
.com-content-category-blog__item img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    margin-bottom: 15px !important;
}

.com-content-category-blog__item h2,
.com-content-category-blog__item h2 a {
    color: #c8a26a !important;
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
    text-decoration: none;
    margin-bottom: 10px;
    min-height: 45px;
}

.item-content,
.com-content-category-blog__item .article-body,
.com-content-category-blog__item p {
    text-align: left !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    flex-grow: 1 !important;
    margin-bottom: 15px !important;
}

.com-content-category-blog__item .readmore,
.com-content-category-blog__item a.btn,
.com-content-category-blog__item p:last-child {
    margin-top: auto !important;
}

@media (max-width: 1024px) {
    .blog-items, .items-row, .com-content-category-blog__items {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .blog-items, .items-row, .com-content-category-blog__items {
        grid-template-columns: 1fr !important;
    }

    .com-content-category-blog__item {
        max-width: 100% !important;
    }

    .com-content-category-blog__item .item-image img,
    .com-content-category-blog__item img {
        height: auto !important;
        max-height: 300px !important;
    }
}

/* ==========================================
   4. REMOVE WHITE SIDEBARS
   ========================================== */
.main-grid {
    display: block !important;
    background-color: #000000 !important;
}

#content, main {
    background-color: #000000 !important;
}

/* ==========================================
   5. GENERAL SYSTEM FOOTER & BACK TO TOP
   ========================================== */
footer, .footer, footer.footer {
    background-color: #000000 !important;
    background-image: none !important;
    position: relative !important;
    padding-top: 40px !important;
}

footer.footer::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 1px !important;
    background-color: #c8a26a !important;
    z-index: 999 !important;
}

.back-to-top-link {
    background-color: #c8a26a !important;
    right: 20px;
    bottom: 90px;
    z-index: 9999;
}
/* ==========================================
   6. HOME HERO / BANNER - FIXED FOR MOBILE
   ========================================== */

.site-wrapper main#content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#system-message-container {
    display: none;
}

.container-component {
    padding-top: 0 !important;
}

.body-home .container-component,
.body-home main#content {
    display: none !important;
}

/* Cassiopeia banner wrapper */
.container-banner,
.home-hero,
.home-hero .mod-custom {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Actual Tuscany hero background - Desktop */
.tg-hero {
    width: 100% !important;
    height: 620px !important;
    min-height: 620px !important;
    max-height: 620px !important;
    display: block !important;
    overflow: hidden !important;
    background-image: url("/images/hds.jpg") !important;
    background-size: cover !important;
    -webkit-background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    background-attachment: scroll !important;
}

/* Keep real img visible if the module uses an img tag */
.container-banner img,
.home-hero img,
.home-hero .mod-custom img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Android & Layout defaults for Mobile */
@media (max-width: 768px) {
    .container-banner,
    .home-hero,
    .home-hero .mod-custom,
    .tg-hero,
    .tg-hero-mobile {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
        overflow: hidden !important;
        background-color: #000000 !important;
    }

    .tg-hero,
    .tg-hero-mobile {
        background-image: url("/images/hds.jpg") !important;
        background-size: cover !important;
        -webkit-background-size: cover !important;
        background-position: left center !important; /* הצמדה לשמאל עבור התיק */
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }

    .container-banner img,
    .home-hero img,
    .home-hero .mod-custom img {
        width: 100% !important;
        height: 300px !important;
        max-height: 300px !important;
        object-fit: cover !important;
        object-position: left center !important; /* הצמדה לשמאל עבור התיק */
        display: block !important;
        background-color: #000000 !important;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container-banner,
    .home-hero,
    .home-hero .mod-custom,
    .tg-hero,
    .tg-hero-mobile {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }

    .container-banner img,
    .home-hero img,
    .home-hero .mod-custom img {
        height: 250px !important;
        max-height: 250px !important;
    }
}

/* iPhone Safari Specific Overrides - No duplicates allowed below this! */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .tg-hero,
        .tg-hero-mobile {
            background-size: cover !important;
            -webkit-background-size: cover !important;
            background-position: left center !important;
            background-attachment: scroll !important;
        }

        .container-banner img,
        .home-hero img,
        .home-hero .mod-custom img {
            object-fit: cover !important;
            object-position: left center !important;
        }
    }
}

/* ==========================================
   7. CONTACT & ABOUT PAGES STYLE
   ========================================== */
.contact-container, .about-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #000000;
    color: #ffffff;
}

.contact-info, .contact-form-wrapper, .about-text-section, .about-values-section {
    flex: 1;
    min-width: 300px;
}

.contact-info h2, .contact-form-wrapper h2, .about-container h2 {
    color: #c8a26a !important;
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info p, .about-text-section p {
    line-height: 1.8;
    color: #cccccc;
    font-size: 1rem;
}

.info-item {
    margin-top: 25px;
    border-left: 2px solid #c8a26a;
    padding-left: 15px;
}

.info-item strong {
    color: #c8a26a;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.luxury-form input, .luxury-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #111111 !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
    font-size: 1rem;
    transition: 0.3s;
    border-radius: 0;
}

.luxury-form input:focus, .luxury-form textarea:focus {
    border-color: #c8a26a !important;
    outline: none;
}

.contact-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #c8a26a;
    color: #000000;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-submit-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

.about-lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e5e5e5;
    margin-bottom: 20px;
    font-weight: 500;
}

.value-card {
    background-color: #111111;
    border: 1px solid #222222;
    padding: 25px;
    margin-bottom: 20px;
    transition: 0.3s ease;
}

.value-card:hover {
    border-color: #c8a26a;
}

.value-card h3 {
    color: #c8a26a !important;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.value-card p {
    font-size: 0.95rem;
    color: #aaaaaa;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .contact-container, .about-container {
        flex-direction: column;
        padding: 40px 15px;
    }

    .contact-info {
        text-align: center;
    }

    .info-item {
        border-left: none;
        border-top: 1px solid #c8a26a;
        padding-left: 0;
        padding-top: 15px;
    }
}

/* ==========================================
   8. HEADER MENU CENTER & MOBILE HAMBURGER
   ========================================== */
div.grid-child.container-nav {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
}

.header .navbar, .header .navbar-collapse {
    width: 100% !important;
    justify-content: center !important;
}

ul.mod-menu.mod-menu_dropdown-metismenu.metismenu.menu-horizontal {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

ul.mod-menu.mod-menu_dropdown-metismenu.metismenu.menu-horizontal > li {
    display: inline-flex !important;
    float: none !important;
}

@media (max-width: 991.98px) {
    .header .navbar {
        justify-content: flex-end !important;
    }

    .header .navbar-toggler {
        margin-left: auto !important;
        margin-right: 15px !important;
        margin-top: 0 !important;
        padding: 4px 8px !important;
    }

    .header, .container-header, .header-content {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    .navbar-brand img {
        max-height: 40px !important;
    }

    .navbar-brand {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }
}

/* ==========================================
   9. HEADER SEARCH STRIP & SINGLE ARTICLE
   ========================================== */
.container-search label.finder {
    display: none !important;
}

.container-search {
    position: absolute !important;
    z-index: 9999 !important;
    width: 45px !important;
    height: 45px !important;
    transition: all 0.3s ease-in-out !important;
    background-color: transparent !important;
}

.container-search .form-search, .container-search .awesomplete {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.container-search input.js-finder-search-query.form-control, .awesomplete > input {
    background-color: transparent !important;
    border: none !important;
    color: transparent !important;
    height: 45px !important;
    width: 45px !important;
    padding: 0 !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease-in-out !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23c8a26a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.container-search input::placeholder {
    color: transparent !important;
}

@media (min-width: 992px) {
    .container-search {
        right: 40px !important;
        top: 60px !important;
    }

    .container-search:focus-within {
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-color: #000000 !important;
        padding: 0 10% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .container-search:focus-within input.js-finder-search-query.form-control,
    .container-search:focus-within .awesomplete > input {
        width: 100% !important;
        max-width: 600px !important;
        color: #ffffff !important;
        border-bottom: 1px solid #c8a26a !important;
        padding-left: 45px !important;
        padding-right: 45px !important;
        background-position: left 10px center !important;
        cursor: text !important;
    }

    .container-search:focus-within input::placeholder {
        color: #666666 !important;
    }
}

@media (max-width: 991.98px) {
    .container-search {
        right: 70px !important;
        top: 12px !important;
    }

    .container-search:focus-within {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        width: 100vw !important;
        height: 60px !important;
        background-color: #000000 !important;
        padding: 0 20px !important;
        display: flex !important;
        align-items: center !important;
    }

    .container-search:focus-within input.js-finder-search-query.form-control,
    .container-search:focus-within .awesomplete > input {
        width: 100% !important;
        color: #ffffff !important;
        border-bottom: 1px solid #c8a26a !important;
        padding-left: 40px !important;
        background-position: left 10px center !important;
        cursor: text !important;
    }

    .container-search:focus-within input::placeholder {
        color: #666666 !important;
    }
}

.container-search::after {
    content: "\00d7" !important;
    color: #c8a26a !important;
    font-size: 32px !important;
    position: absolute !important;
    right: 40px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10001 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
}

@media (max-width: 991.98px) {
    .container-search::after {
        right: 20px !important;
        font-size: 26px !important;
    }
}

.container-search:focus-within::after {
    opacity: 1 !important;
}

.awesomplete > ul[hidden] {
    display: none !important;
}

.com-content-article .item-image,
.com-content-article .full-image {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 40px auto !important;
    text-align: center !important;
}

.com-content-article .item-image img,
.com-content-article .full-image img {
    width: 100% !important;
    max-width: 1100px !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.com-content-article .article-body {
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 0 20px 60px 20px !important;
    font-size: 1.15rem !important;
    line-height: 1.85 !important;
    color: #e5e5e5 !important;
    text-align: left !important;
}

.com-content-article .article-body h3,
.com-content-article .article-body h4 {
    color: #c8a26a !important;
    margin-top: 35px !important;
    margin-bottom: 15px !important;
    text-align: left !important;
}

.blog-items .item-leading {
    grid-column: span 2 !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .blog-items .item-leading {
        grid-column: span 1 !important;
    }
}

/* ==========================================
   10. BULLETPROOF CUSTOM HTML FOOTER LAYOUT
   ========================================== */
footer.footer .grid-child,
footer.footer .footer-inner,
footer.footer .mod-custom,
footer.footer .card,
footer.footer .card-body,
footer.footer div[class*="mod-"] {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-container, div.footer-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 45px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px 60px 20px !important;
    box-sizing: border-box !important;
}

.footer-column, div.footer-column {
    display: flex !important;
    flex-direction: column !important;
    background: transparent !important;
    border: none !important;
}

.footer-column h4, div.footer-column h4 {
    color: #c8a26a !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    margin: 0 0 20px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.footer-column p {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 0 0 15px 0 !important;
}

.footer-links, ul.footer-links {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 12px !important;
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
}

.footer-links a {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: color 0.2s ease, padding 0.2s ease !important;
}

.footer-links a:hover {
    color: #c8a26a !important;
    padding-left: 5px !important;
}

@media (max-width: 768px) {
    .footer-container, div.footer-container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 35px !important;
        padding-top: 20px !important;
    }

    .footer-column, div.footer-column {
        align-items: center !important;
    }
}

/* ==========================================
   11. ACCESSIBILITY BUTTON - VISIBILITY RESCUE
   ========================================== */
joomla-accessibility-button,
#joomla-accessibility-container,
.joomla-accessibility-button,
button.joomla-accessibility-toggle,
[id*="accessibility-btn"],
[class*="accessibility-btn"] {
    position: fixed !important;
    bottom: 25px !important;
    right: 90px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999999 !important;
}

#joomla-accessibility-container button,
joomla-accessibility-button button,
.joomla-accessibility-button button,
button.joomla-accessibility-toggle,
.joomla-accessibility-button {
    background-color: #c8a26a !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(200, 162, 106, 0.4) !important;
}

#joomla-accessibility-container svg,
joomla-accessibility-button svg,
.joomla-accessibility-button svg {
    fill: #000000 !important;
    stroke: #000000 !important;
}
/* ==========================================
   12. NEW BANNERS MODULE - PERFECT FOCUS
   ========================================== */

/* מוודא שהבאנר תופס את כל הרוחב במחשב ולא נחתך */
.banneritem img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* התאמה חכמה וזהה לטלפונים ניידים (אנדרואיד ואייפון) */
@media (max-width: 768px) {
    .banneritem img {
        height: 300px !important; /* קובע גובה נוח לנייד כדי שלא יתכווץ לפס דק */
        object-fit: cover !important; /* ממלא את כל השטח בלי לעוות או למתוח את התמונה */
        object-position: 22% center !important; /* נועל את הפוקוס על התיק והפרחים שבצד שמאל */
    }
}
/* ==========================================
   13. BALANCED BLACK HEADER - ENLARGED LOGO (DESKTOP)
   ========================================== */
@media (min-width: 992px) {
    header.header, .header, .container-header, .header-content {
        padding-top: 12px !important;   /* הוספת מרווח קל בשביל הלוגו הגדול */
        padding-bottom: 10px !important;
        margin: 0 !important;
        row-gap: 8px !important; 
    }

    .navbar-brand {
        margin: 0 auto !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
    .navbar-brand img {
        max-height: 65px !important;   /* <--- גודל הלוגו במחשב (הגדלנו מ-50 ל-65) */
        height: auto !important;
    }

    div.grid-child.container-nav, .header .navbar, .header .navbar-collapse {
        margin: 0 !important;
        padding: 0 !important;
        min-height: auto !important;
    }

    ul.mod-menu.menu-horizontal > li > a,
    ul.mod-menu.menu-horizontal > li > span {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        margin: 0 !important;
        line-height: 1.4 !important; 
    }
}

/* ==========================================
   14. SHRINK BLACK HEADER - ENLARGED LOGO (MOBILE)
   ========================================== */
@media (max-width: 991.98px) {
    header.header, .header, .container-header, .header-content {
        padding-top: 6px !important;    /* הוספת מרווח קל בשביל הלוגו הגדול */
        padding-bottom: 4px !important;
        gap: 0px !important;
        row-gap: 4px !important; 
    }

    .navbar-brand {
        margin-top: 4px !important;
        margin-bottom: 0px !important;
        padding: 0 !important;
    }
    .navbar-brand img {
        max-height: 48px !important;   /* <--- גודל הלוגו בטלפון (הגדלנו מ-35 ל-48) */
        height: 48px !important;
    }

    .header .navbar-toggler {
        margin-top: 2px !important;
        margin-bottom: 2px !important;
        padding: 2px 6px !important; 
    }

    /* התאמת מיקום זכוכית המגדלת של החיפוש ללוגו החדש */
    .container-search {
        top: 14px !important; 
    }
}
/* 🖥️ עיצוב למחשבים ומסכים גדולים בלבד - מובייל נשאר ללא שינוי */
@media (min-width: 769px) {
    
    /* פנייה לכפתורי ה-CTA בגריד המאמרים */
    .blog-item .btn, 
    .blog-item .readmore a,
    div[class*="card"] a,
    .banner-cta-action a {
        
        /* 1. ריווח (דוחף את הכפתור למטה מהטקסט ויוצר מרחב אלגנטי) */
        margin-top: 25px !important; 
        margin-bottom: 12px !important;
        
        /* 2. הקטנת הקוביה (מצמצם את הפדינג הפנימי של התיבה) */
        padding: 8px 22px !important; 
        
        /* 3. התאמת גודל הפונט עדין לקוביה הקטנה */
        font-size: 11px !important;
        letter-spacing: 2px !important;
    }
}

/* 🚫 ביטול מוחלט של קווים תחתיים בתפריט העליון ובכפתורי ה-CTA */
header a, 
.mod-menu a, 
.nav-link,
.navbar-brand a,
.blog-item .btn, 
.blog-item .readmore a,
div[class*="card"] a,
.banner-cta-action a {
    text-decoration: none !important;
}
/* 📝 תיקון גדלי פונטים במאמרים: כותרות ברורות וטקסט מעודן */

/* 1. החזרת הגודל והנוכחות לכותרות המאמרים (יוקרה מתוחכמת) */
.blog-item h2,
.blog-item h2 a,
div[class*="card"] h2,
div[class*="card"] h2 a {
    font-size: 24px !important; /* גודל מושלם ובולט לכותרת, לא ענק מדי ולא קטן מדי */
    line-height: 1.3 !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

/* 2. טקסט התיאור (הפסקה) נשאר קטן, אלגנטי וקריא */
.blog-item p,
.blog-item .article-introtext,
div[class*="card"] p {
    font-size: 13.5px !important; /* קטן ויוקרתי, אבל לא דורש זכוכית מגדלת */
    line-height: 1.6 !important;   /* מרווח נשימה בין השורות */
    color: #dfdfdf !important;     /* צבע אפור-לבן עדין שלא צועק */
}
/* =========================================================================
   עריכת נגישות וניקוי מערך ה-UI (רמת מומחה 1%)
   ========================================================================= */

/* 1. ביטול מלא של האייקון בצד שמאל */
body._accessibility_side_left ._access-icon,
body._accessibility_pos_left ._access-icon {
    display: none !important;
}

/* 2. מיקום מחדש של האייקון בצד ימין (מתחת ל-Back-to-Top) */
._access-icon {
    left: auto !important;
    right: 15px !important; /* יישור קו אחיד לימין */
    bottom: 15px !important; /* קביעת גובה לתחתית */
    position: fixed !important;
    z-index: 1001 !important; /* מעל המעוין */
}

/* 3. הגדרת צבעים לאייקון הימני (תואם לעוגייה) */
._access-icon ._access_icon_container {
    background-color: #dfba84 !important; /* צבע זהב תואם */
    color: #000000 !important; /* אייקון שחור */
    border-radius: 4px !important;
}

/* 4. ביטול המעוין המוזהב (The Gold Rhombus) */
._access-icon:after,
._access-icon:before {
    display: none !important;
}

/* 5. הרמת כפתור החזרה למעלה (Cassiopeia Back-to-Top) כדי לפנות מקום */
#back-top {
    right: 15px !important; /* יישור אנכי מושלם */
    bottom: 75px !important; /* פינוי מקום מדויק לאייקון הנגישות */
    margin-right: 0 !important;
}
/* =========================================================================
   TOP 1% ARCHITECT: BESPOKE FLOATING UI UTILITY
   ========================================================================= */

/* 1. ניטרול מוחלט של המכולה של ג'ומלה - שלא תציג פסים, גבהים או רקעים */
.wrapper-backtotop {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;   /* מחזיר אותה לזרימה הרגילה בלי להפריע */
    overflow: visible !important;  /* מאפשר לחץ הפנימי לצוף החוצה בחופשיות */
}

/* 2. שחרור הלחצן עצמו - הופכים אותו לצידו ה-Fixed, מחוץ לכלוב של המכולה */
#back-top, .back-to-top-link, joomla-scroll-top a {
    position: fixed !important;
    bottom: 90px !important;       /* מיקום מדויק מעל אייקון הנגישות שלך */
    right: 20px !important;        /* הצמדה נקייה לימין המסך */
    left: auto !important;         /* ביטול מוחלט של כל פקודת שמאל ישנה */
    display: flex !important;      /* Flexbox למרכוס מושלם של החץ בפנים */
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;        /* רוחב עיגול */
    height: 48px !important;       /* גובה עיגול */
    background-color: #baa07a !important; /* צבע הזהב היוקרתי של המותג שלך */
    color: #ffffff !important;     /* חץ לבן ונקי */
    border-radius: 50% !important; /* עיגול מושלם */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important; /* צל שמקפיץ את הכפתור מהרקע */
    z-index: 99999 !important;     /* מבטיח שהוא יצוף מעל כל רכיב, סליידר או תמונה באתר */
    text-decoration: none !important;
    transition: all 0.3s ease-in-out !important; /* אנימציה חלקה במעבר עכבר */
}

/* אפקט ריחוף יוקרתי (Hover) */
#back-top:hover, .back-to-top-link:hover {
    background-color: #a38965 !important; /* זהב עמוק יותר */
    transform: translateY(-4px) !important; /* קפיצה קלה למעלה לתחושת נגיעה */
}

/* וידוא שהחץ הפנימי נשאר לבן וממורכז */
#back-top i, .back-to-top-link i, #back-top span, .back-to-top-link span {
    color: #ffffff !important;
    font-size: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. סידור אייקון הנגישות הקיים שלך בבסיס הימני */
._access-icon {
    position: fixed !important;
    bottom: 25px !important;    /* יושב בתחתית, בדיוק מתחת לחץ */
    right: 20px !important;     /* יישור קו אנכי מושלם עם החץ שמעליו */
    left: auto !important;
    z-index: 100000 !important;
}

._access-icon ._access_icon_container {
    background-color: #dfba84 !important;
    border-radius: 50% !important; /* הפיכת הנגישות לעיגול תואם לחץ */
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

/* ביטול שאריות המעוין הישן של הנגישות */
._access-icon:after, ._access-icon:before {
    display: none !important;
}