/*
 Theme Name:     Divi Child Theme
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/
 
/* =Theme customization starts here
------------------------------------------------------- */
header .et_pb_menu__wrap {
    margin: auto;
}
header .et-menu-nav li {
    padding: 0!important;
}
header .et-menu-nav li:first-child {
    padding-left: 11px!important;
}
header .et-menu-nav li:last-child {
    padding-right: 11px!important;
}
header .et-menu-nav li a {
    padding: 15px!important;
}
header .et-menu-nav li a:hover,
header .et-menu-nav li.current-menu-item a {
    background-color: #464F01!important;
}
header .et-menu-nav li:first-child a {
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
}
header .et-menu-nav li:last-child a {
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
}
header .mobile_menu_bar {
    background-color: #4f8052;
    border-radius: 5px;
}
header .mobile_menu_bar::before {
    color: #fff!important;
    font-size: 44px;
}
body .et_pb_button {
    font-weight: 500!important;
}
.wp-block-column.gray-col {
    background-color: #ededed;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 15px;
}
.wp-block-column.green-col {
    background-color: #D0DB77;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 15px;
}
.wp-block-button .wp-block-button__link {
    background-color: #d05619;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 5px 10px;
    text-transform: uppercase;
    transition: all 0.4s ease;
}
.wp-block-button .wp-block-button__link:hover {
    background-color: #333;
}
.et_pb_module .post-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 20px;
}
.et_pb_button_module_wrapper > a.more-link {
    display: inline-block!important;
    margin-top: 15px;
}

/* Bootstrap */
.mb-0 {
	margin-bottom: 0!important;
}

/* Gutenberg editor */
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    padding-left: 0;
}
.wp-block-details {
    padding-bottom: 1em;
}
.wp-block-details summary {
    color: #d05619;
    list-style-position: outside;
    margin-left: 12px;
    padding-bottom: 1em;
    padding-left: 5px;
}
.wp-block-details summary::marker {
    content: '3';
    font-family: 'ETmodules';
    font-size: 18px;
}
.wp-block-details[open] summary::marker {
    content: '2';
}
/* WordPress Gutenberg Details (Üksikasjad) mooduli moderniseerimine */
details.wp-block-details {
    background-color: #f8fafc; /* Hele, puhas taust */
    border: 1px solid #e2e8f0; /* Õrn piirjoon */
    border-left: 4px solid #2e7d32; /* Võru Leaderi roheline/aktsenttoon vasakul servas */
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Efekt, kui hiirega peale liikuda */
details.wp-block-details:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}

/* Pealkirja (Summary) stiil */
details.wp-block-details summary {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e293b;
    cursor: pointer;
    padding: 5px 0;
    list-style: none; /* Peidab vaikimisi noole brauserites */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Kohandatud noole/plussi lisamine paremale serva */
details.wp-block-details summary::after {
    content: '\002B'; /* Plussmärk */
    font-size: 1.4rem;
    color: #2e7d32;
    font-weight: bold;
    transition: transform 0.2s ease;
}

/* Kui moodul on avatud, muudame plussi miinuseks ja aktsenti */
details.wp-block-details[open] summary::after {
    content: '\2212'; /* Miinusmärk */
}

details.wp-block-details[open] {
    background-color: #ffffff;
    border-color: #cbd5e1;
}

/* Sisuosa viimistlus (kui akordion avaneb) */
details.wp-block-details .wp-block-details-content {
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    margin-top: 10px;
    color: #475569;
    line-height: 1.6;
}

/* Menu modules */
.side-box h2 {
    border-bottom: 2px solid #464F01;
    margin-bottom: 5px;
    padding-bottom: 5px;
}
.menu-module ul {
    margin: 0 15px!important;
}
.menu-module li {
    border-bottom: 1.5px dotted #464F01;
    display: block!important;
    padding: 0!important;
    width: 100%;
}
.menu-module li a {
    color: #D05619;
}
.menu-module li.current-menu-item > a {
    color: #464F01;
}
.menu-module li.current_page_item .sub-menu,
.menu-module li.current-menu-ancestor .sub-menu {
    display: block;
}
.menu-module li .sub-menu {
    border-top: none;
    box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    display: none;
    opacity: 1;
    padding: 0!important;
    position: relative;
    top: auto!important;
    visibility: visible;
    width: auto;
}
.menu-module li .sub-menu li:last-child {
    border-bottom: none;
}
.menu-module li .sub-menu li a {
    padding: 6px 0;
}
.menu-module li .sub-menu li:first-child a {
    padding-top: 0;
}

/* Pagination */
.wp-pagenavi {
    margin-left: -2.5px;
}
.wp-pagenavi .current,
.wp-pagenavi .page {
    border-radius: 5px;
    color: #fff !important;
    display: inline-block;
    height: 30px;
    margin: 2.5px;
    text-align: center;
    width: 30px;
}
.wp-pagenavi .current {
    background-color: #333;
}
.wp-pagenavi .page {
    background-color: #D05619;
}
.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
    display: inline-block;
    height: 30px;
    text-align: center;
    width: 30px;
}
.wp-pagenavi .nextpostslink {
    margin-left: -5px;
}

/* Edulood posts */
.edulood-posts article {
    border-bottom: 1.5px dotted #464F01;
    margin-bottom: 40px;
    padding-bottom: 30px;
}

/* Uudised posts */
.uudised-posts article {
    margin-bottom: 30px;
    padding-bottom: 30px;
}
.uudised-posts article .published::before {
    content: 'Avaldatud: ';
}

/*** Responsive Styles Large Desktop And Above ***/
@media all and (min-width: 1405px) {
  
}
 
/*** Responsive Styles Standard Desktop Only ***/
@media all and (min-width: 1100px) and (max-width: 1405px) {
 
}
 
/*** Responsive Styles Tablet And Below ***/
@media all and (max-width: 980px) {
    .menu-module .et_pb_menu__menu {
        display: block;
    }
    .menu-module .et_mobile_nav_menu {
        display: none;
    }
}
 
/*** Responsive Styles Tablet Only ***/
@media all and (min-width: 768px) and (max-width: 980px) {
 
}
 
/*** Responsive Styles Smartphone Only ***/
@media all and (max-width: 767px) {
    .d-md-none {
        display: none;
    }
}

/*** Responsive Styles Smartphone Portrait ***/
@media all and (max-width: 600px) {
    /* Gutenberg editor */
    .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
        padding-right: 0;
        padding-top: 20px;
    }
}
 
/*** Responsive Styles Smartphone Portrait ***/
@media all and (max-width: 479px) {
    img.alignright {
        display: block;
        float: none;
        margin: 0 0 1em 0;
    }
}