/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/*MAKE THE DEFAULT HEADER DISSPAER - ELEMENTOR DOES NOT DO THAT FULLY*/

/* Only affects individual post */
.single-post #site-header, 
.single-post .site-header, #site-footer, .site-footer {
    display: none !important;
}

/*.elementor-widget-theme-post-content div p a {
	color: #9a4b3f;
}*/

/*FOR BLOG POSTS*/
/* Container reset */
.custom-sidebar-accordion {
	border-top: 2px solid rgba(244, 243, 234, 0.7); /* Superior line for the first item */
}

/* Individual Month Item */
.month-group {
    transition: all 0.3s ease;
	position: relative;
	/*color: #fafafa;*/
	color: #F4F3EA;
}

/*Line after Month Header and plus sign*/
.month-group::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    /* Aquí está la magia: el ancho de la línea será el del contenedor */
 	width: 85%;
    height: 2px;
	/*background-color: rgba(250, 250, 250, 0.5);*/
	background-color: rgba(244, 243, 234, 0.5);
	margin: 0 1rem;
}

/* Header Styling */
.month-header {
    list-style: none; /* Removes default arrow in most browsers */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%;
	margin: 1rem auto;
    cursor: pointer;
    font-family: 'Nunito';
    /*font-weight: 700;*/
    text-transform: capitalize;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Remove default arrow for Safari/Chrome */
.month-header::-webkit-details-marker {
    display: none;
}

/* The Icon Styling */
.plus {
    font-size: 0.9rem;
    line-height: 1;
    display: inline-block;
    transition: transform 0.3s ease;
    width: 20px;
    text-align: center;
}

/* Transform + into - when open */
/* Using a pseudo-element or content change via CSS */
.month-group[open] .plus::before {
    content: "−"; /* Unicode minus sign for better alignment than a hyphen */
}

.month-group:not([open]) .plus::before {
    content: "+";
}

/* Post List Styling */
.post-list {
    list-style: none;
    padding: 0 0 20px 0;
    margin: 0;
}

.post-list li {
    width: 85%;
	border-radius: 8px;
	margin: 0.1rem auto;
}

.post-list li:hover {
	/*border: 1px solid rgba(186,186,186,0.75); Un borde gris muy suave */
    /*transition: transform 0.2s ease, box-shadow 0.2s ease;*/
    list-style: none;
    /*-webkit-box-shadow: 1px 3px 2px 2px rgba(186,186,186,0.85); 
    box-shadow: 1px 3px 2px 2px rgba(186,186,186,0.85);
    *background-color: rgba(186,186,186,0.8);*/
	background-color: rgba(82,104,101,0.8);
	-webkit-box-shadow: 1px 3px 2px 2px rgba(74,93,91,0.85); 
    box-shadow: 1px 3px 2px 2px rgba(74,93,91,0.85);
}

.post-list li a {
	display: flex;
    flex-direction: column; /* This forces the spans to stack vertically */
    text-decoration: none;
	/*color: #fafafa;*/
	color: #F4F3EA;
    font-size: 0.95rem;
    transition: color 0.2s;
	padding: 0.5rem;
	font-family: 'Nunito';
}

.post-list li a .post-sidebar-date {
	font-size: 0.80rem;
	font-family: 'Nunito';
}

/* Highlight Active Post */
.post-list li.is-active a .post-sidebar-title {
    font-weight: 700;
	/*color: #fafafa;*/
	color: #F4F3EA;
}

.post-list li.is-active{
    /*-webkit-box-shadow: 1px 3px 2px 2px rgba(175,175,175,0.85); 
    box-shadow: 1px 3px 2px 2px rgba(175,175,175,0.85);
    background-color: rgba(175,175,175,0.8);*/
	background-color: rgba(74,93,91,0.8);
	box-shadow: 1px 3px 2px 2px rgba(65,82,80,0.85);
	-webkit-box-shadow: 1px 3px 2px 2px rgba(65,82,80,0.85); 
}

.custom-sidebar-accordion {
    height: 72vh;           /* 100% of screen height */
    overflow-y: auto;        /* Show scrollbar only if content overcome the screen height*/
    overflow-x: hidden;      /* Avoid accidental horizontal scrollbar  */
    display: flex;
    flex-direction: column;    
    /* Firefox Support */
    scrollbar-width: thin;
	/*scrollbar-color: rgba(250, 250, 250, 0.8) transparent;*/
	scrollbar-color: rgba(244, 243, 234, 0.8) transparent;
}

/* 2. Scrollbar styles for Chrome, Safari y Edge (Webkit) */
.custom-sidebar-accordion::-webkit-scrollbar {
    width: 10px; /* Thin scrollbar*/
}

.custom-sidebar-accordion::-webkit-scrollbar-track {
    background: rgba(244, 243, 234, 0.8);  /* background track invisible */
}

.custom-sidebar-accordion::-webkit-scrollbar-thumb {
	background: rgba(244, 243, 234, 0.8); /* bar color */
    border-radius: 10px;      
}

.custom-sidebar-accordion::-webkit-scrollbar-thumb:hover {
    background: rgba(244, 243, 234, 0.95);   /* when mouse is over, darker color  */
}

/*FOR POST NAVIGATION ARROW + POST TITLE*/
.custom-post-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; /* Centra todo el bloque */
    padding: 1rem 0;
}

.nav-current-title {
    font-weight: 700;
    font-size: 1.2rem;
	font-family: 'Nunito';
	color: #212121;
    text-align: center;
	margin: auto 10%;
}

.nav-arrow {
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-arrow:hover {
    opacity: 0.6;
}

.nav-arrow.prev:hover {
    transform: translateX(-5px); /* Pequeño salto a la izquierda */
}

.nav-arrow.next:hover {
    transform: translateX(5px); /* Pequeño salto a la derecha */
}

.nav-arrow.disabled {
    color: #a3a3a3;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-current-title {
        font-size: 1rem;
    }
}


/*SIDEBAR TOGGLE ACCORDEON BUTTON FOR MOBILE*/
/* Base: Hide on Desktop */
#mobile-archive-toggle, .mobile-archive-drawer, .mobile-drawer-overlay {
    display: none;
}

@media (max-width: 1023px) {
    /* Sticky Button Bottom Left */
    #mobile-archive-toggle {
        display: flex;
        position: fixed;
        bottom: 1vh;
        left: 1rem;
        z-index: 999;
        background: #222;
        color: #fafafa;
        border: none;
        padding: 10px 18px;
        align-items: center;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 1px;
        cursor: pointer;
		font-family:'Nunito';
    }

    .toggle-icon { transition: transform 0.3s; margin-left: 0.5rem;}

    /* The Drawer Overlay */
    .mobile-drawer-overlay {
        display: block;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        /*background: rgba(243,243,243,0.5);*/
		background-color: rgba(91, 115, 112, 0.5);
        z-index: 1000;
        opacity: 0; visibility: hidden;
        transition: 0.3s;
    }
    .mobile-drawer-overlay.is-active { opacity: 1; visibility: visible; }

    /* The Drawer Slide-out */
    .mobile-archive-drawer {
        display: block;
        position: fixed;
        top: 0; left: -100%; /* Hidden to the left */
        width: 85%; max-width: 320px;
        height: 100vh;
        background: rgba(240,240,240,1);
		background-color: rgba(91, 115, 112, 1);
        z-index: 1001;
        transition: left 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        padding: 20px;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    }
    .mobile-archive-drawer.is-open { left: 0; }

    .drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 10px;
		color: #F4F3EA;
    }
    
    .drawer-body {
        height: calc(100vh - 80px);
        overflow-y: auto;
    }

    /* Hide the original desktop sidebar if it exists on mobile */
    .custom-sidebar-container { display: none !important; }
    .main-content-container { margin-left: 0 !important; width: 100% !important; }
}