/* =========================================================
   RD3 CORE — LAYOUT
   Global page structure and layout styles
   ========================================================= */


/* =========================================================
   BODY LAYOUT
   ========================================================= */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background-color);
}


/* =========================================================
   CONTAINER
   ========================================================= */

.head-container {
    width: 100%;
    max-width: 1000px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 20px;
    padding-right: 20px;
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.Main-container {
    flex: 1;
}


/* =========================================================
   CONTENT AREA
   ========================================================= */

.content-area {
    display: flex;
    gap: 2rem;
    min-height: 100%;
}

.site-main {
    flex: 3;
}

.sidebar {
    flex: 1;
    max-width: 300px;
}

.main-sidebar-wrapper {
    width: 320px;
    padding: 0 20px;
    background: #f9f9f9;
    list-style-type: none;
    min-height: 100%;
}


/* =========================================================
   SIDEBAR POSITION
   ========================================================= */

.content-area.sidebar-left {
    flex-direction: row;
}

.content-area.sidebar-right {
    flex-direction: row-reverse;
}


/* =========================================================
   POSTS
   ========================================================= */

article.post {
    padding: 3vh 0;
}

article.page,
article.single-post {
    background: transparent;
}


/* =========================================================
   WIDGETS
   ========================================================= */

.widget {
    padding: 1.5% 2.5%;
    background: #f5f5f5;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.widget_block {
    margin-left: 1%;
}

.widget-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
    margin-top: 2rem;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 4px;
    background: #f3f3f3;
    text-decoration: none;
}

.pagination .current {
    background: #222;
    color: #fff;
}

.nav-links {
    text-align: center;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    padding: 100px 20px;
    text-align: center;
    background: #f4f4f4;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    position: relative;
    display: flex;
    width: 100%;
    margin: 0;
    padding: 17px;
    box-sizing: border-box;
    text-align: center;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.site-footer > .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-info {
    padding: 0 1% 1% 0;
    box-sizing: border-box;
}

.footer-info-text {
    color: #200b0b;
    font-size: 15px;
    font-weight: 600;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    margin: 30px 0;
    box-sizing: border-box;
}

.footer-column {
    flex: 1 1 30%;
    min-width: 200px;
    box-sizing: border-box;
}

.footer-widget-title {
    margin-bottom: 10px;
    font-size: 16px;
}


/* =========================================================
   NAV — TOGGLE + SEARCH
   ========================================================= */

.main-nav .main-menu li.rd3-nav-sidebar-toggle,
.main-nav .main-menu li.rd3-nav-search {
    width: fit-content;
    flex: 0 0 auto;
}

/* When toggle is present → push the toggle to the right */
.main-nav .main-menu li.rd3-nav-sidebar-toggle {
    margin-left: auto;

}

/* Normal gap between toggle and search */
.main-nav .main-menu li.rd3-nav-search {
    margin-left: auto;
    padding-left: 0;
}

/* When toggle is NOT present → push the search to the right instead */
.main-nav .main-menu li.rd3-nav-search--alone {
    margin-left: auto !important;
}

/* =========================================================
   SEARCH FORM
   ========================================================= */

.rd3-nav-search .search-form {
    display: flex;
    align-items: center;
    margin: 0;
    gap: 4px;
}

.rd3-nav-search .search-field {
    width: 180px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.rd3-nav-search .search-submit {
    padding: 6px 10px;
}


.rd3-nav-sidebar-toggle{
    border: 1px solid #000000;
    border-radius: 6px;
}

/* =========================================================
   Sidebar Toggle Button
   ========================================================= */

.sidebar-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 11px 12px;

    border: 1px solid #ffffff;
    border-radius: 6px;

    font-size: 14px;
    font-weight: 600;
 

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}




/* =========================================================
   Sidebar Toggle Icon
   ========================================================= */

.sidebar-toggle-button .toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;


    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}


/* =========================================================
   Keyboard Focus
   ========================================================= */

.sidebar-toggle-button:focus-visible {
    outline: 2px solid;
    outline-offset: 2px;
}

/* =========================================================
   SIDEBAR TOGGLE — DESKTOP / MOBILE
   ========================================================= */

/* =========================================================
   SIDEBAR TOGGLE — DESKTOP / MOBILE
   ========================================================= */

.sidebar-desktop-only {
    display: inline-flex;
}

.sidebar-mobile-only {
    display: none;
}

@media (max-width: 767px) {

    .sidebar-desktop-only {
        display: none !important;
    }

    .sidebar-mobile-only {
        display: inline-flex;
    }

}






/* =========================================================
   ARROW
   ========================================================= */

.arrow {
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;

    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
}

.arrow.right {
    transform: rotate(-90deg);
}

.arrow.down {
    transform: rotate(0deg);
}


/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.featured-image {
    text-align: center;
}

.featured-image img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}