/*
 Theme Name:   Tuzla
 Theme URI:    https://www.kreativluk.ba
 Description:  Divi Child Theme
 Author:       Adnan Huremovic
 Author URI:   https://www.kreativluk.ba
 Template:     Divi
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags: responsive-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, featured-images, full-width-template, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready
 Text Domain:  kreativluk
*/

/* ==========================================================================
   General
========================================================================== */

#main-content {
    background-color: #ededed;
}

.et_pb_row {
    width: 96%;
}

@media (max-width: 767px) {
    .et_pb_row {
        width: 90%;
    }
}

@media (max-width: 479px) {

    .two-columns .et_pb_column {
        width: 48% !important;
        margin-right: 4% !important;
    }

    .two-columns .et_pb_column:nth-child(2n) {
        margin-right: 0 !important;
    }

}

ul.blocks-gallery-grid {
    padding-left: 0;
}

.et_gallery_item.et_pb_gallery_image {
    margin: 0 !important;
}

.et_gallery_item.et_pb_gallery_image .et_portfolio_image {
    padding-top: 100%;
    display: block;
    -webkit-box-shadow: -1px -1px 0px 0px rgba(255, 255, 255, 1);
    -moz-box-shadow: -1px -1px 0px 0px rgba(255, 255, 255, 1);
    box-shadow: -1px -1px 0px 0px rgba(255, 255, 255, 1);
}

.et_gallery_item.et_pb_gallery_image .et_portfolio_image img {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
}

@media (min-width: 768px) {
    .et_gallery_item.et_pb_gallery_image {
        width: 20% !important;
        clear: none !important;
    }
}

@media (max-width: 767px) {
    .et_gallery_item.et_pb_gallery_image {
        width: 25% !important;
        clear: none !important;
    }
}

@media (max-width: 479px) {
    .et_gallery_item.et_pb_gallery_image {
        width: 33.33% !important;
        clear: none !important;
    }
}

.seven-columns .et_pb_module {
    width: 13.28%;
    margin: 0 0.5% 1% 0.5%;
    float: left;
}

@media (max-width: 980px) {
    .seven-columns .et_pb_module {
        width: 25%;
    }
}

@media all and (max-width: 767px) {
    .seven-columns .et_pb_module {
        width: 100%;
    }
}

/* ==========================================================================
   Menu
========================================================================== */

.et-db #et-boc #topheader input.et_pb_searchsubmit,
#searchsubmit {
    font-family: 'ETmodules';
}

.et-db #et-boc #topheader .et_pb_search.et_pb_bg_layout_dark input.et_pb_s {
    border: 1px solid !important;
}

.et-db #et-boc #mainheader #main-menu .et-menu.nav>li {
    padding-left: 10px;
    padding-right: 10px;
    border-left-width: 2px;
    border-left-style: solid;
    border-color: #f4f4f4;
}

.et-db #et-boc #mainheader #main-menu .et-menu.nav>li>a {
    margin: 0 10px;
    padding-top: 22px;
    padding-bottom: 18px;
    border-bottom: 5px solid rgba(0, 0, 0, 0);
}

.et-db #et-boc #mainheader #main-menu .et-menu.nav>li.current-menu-item>a {
    margin: 0 10px;
    border-bottom: 5px solid #d2d3d4;
}

.et-db #et-boc #mainheader #main-menu.et_pb_menu .nav li ul {
    border: 2px solid #dddddd;
    text-align: center;
    padding: 15px 0 5px;
}

.et-db #et-boc #mainheader #main-menu.et_pb_menu .nav li.scroll-menu ul {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 90vh;
}

.et-db #et-boc #mainheader #main-menu.et_pb_menu .nav li ul li {
    padding: 0 10px;
}

.et-db #et-boc #mainheader #main-menu .et-menu li li.menu-item-has-children>a {
    text-transform: uppercase !important;
}

.et-db #et-boc #mainheader #main-menu .et-menu li li.menu-item-has-children>a:first-child:after {
    right: 0px;
    top: -3px;
}

.et-db #et-boc #mainheader #main-menu.et_pb_menu .nav li ul>li a {
    border-bottom: 2px solid #dddddd;
    text-transform: none;
    font-size: 13px;
    line-height: 1.1;
    margin-bottom: 15px;
    padding: 0 0 20px 0;
    text-align: center;
}

.et-db #et-boc #mainheader #main-menu.et_pb_menu .nav li ul>li:last-child a {
    border-bottom: none;
    margin-bottom: 0;
}

.et-db #et-boc #mainheader #main-menu.et_pb_menu .et_mobile_menu li ul {
    padding-left: 20px;
}

.et-db #et-boc #mainheader #main-menu.et_pb_menu .et_mobile_menu li ul li {
    padding: 0 10px;
}

.et-db #et-boc #mainheader #main-menu.et_pb_menu .et_mobile_menu li ul>li a {
    border-bottom: 1px dotted #444444;
    text-transform: none;
    font-size: 12px;
    line-height: 1;
    margin-bottom: 10px;
    padding: 6px 0 10px 0;
    text-align: left;
}

.et-db #et-boc #mainheader #main-menu.et_pb_menu .et_mobile_menu ul li a {
    text-transform: none;
}

/* ==========================================================================
   Breadcrumbs
========================================================================== */

#breadcrumbs {
	background: #fff;
    font-size: 12px;
}

#breadcrumbs a:first-child,
#breadcrumbs .breadcrumb_last {
    background-color: #ffffff;
    padding: 0px 6px 0px 6px;
    display: inline-block;
    margin-right: -1px;
}

#breadcrumbs .breadcrumb_last {
    padding-right: 8px;
}

#breadcrumbs  .et_pb_text_inner>span>span:first-child a {
    font-family: 'ETmodules' !important;
    content: "\35";
    line-height: 12px;
    display: inline-block;
}

/* ==========================================================================
   Sidebar
========================================================================== */

.et-db #et-boc #customsidebar.et_pb_widget_area ul {
    list-style: inside square !important;
}

.et-db #et-boc #customsidebar.et_pb_widget_area ul li {
    line-height: 1.6;
}

.et-db #et-boc #customsidebar .et_pb_widget::before {
    position: relative;
    top: 20px;
    left: 0;
    height: 4px;
    content: '';
    display: block;
    z-index: 0;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.08);
}

.et-db #et-boc #customsidebar h4.widgettitle {
    display: inline-block;
    background-color: #ffffff;
    margin-bottom: 20px;
    padding-right: 5px;
    position: relative;
}

.et-db #et-boc #customsidebar .widget_search #searchsubmit {
    width: auto;
}

.et-db #et-boc #customsidebar ul.sub-menu {
    margin-top: 10px;
}

/* ==========================================================================
   Objave
========================================================================== */

/* .et_pb_posts .et_pb_post span.published, */
body.single-post .et_pb_title_meta_container {
    display: none;
}

.wp-block-advgb-tab .advgb-tab-body {
    padding: 4%;
}

body.archive.category.category-gradtuzla #loop {
    display: none;
} 

/* ==========================================================================
   Vijesti 
========================================================================== */

.et-db #et-boc #titlerow {
    background-color: #ffffff;
    padding: 15px 30px;
    margin: 1px 0;
}

.et-db #et-boc .block-title .et_pb_blurb_content {
    max-width: 100%;
    display: flex;
}

.et-db #et-boc .block-title .et_pb_main_blurb_image {
    margin: auto;
}

.et-db #et-boc .block-title .et-pb-icon {
    color: #d2d3d4 !important;
    font-size: 22px;
}

.et-db #et-boc .block-title .et_pb_blurb_container {
    width: 100%;
    padding-left: 0;
}

.et-db #et-boc .block-title .et_pb_module_header {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: 2px;
    display: inline;
    padding: 0 20px 0 0;
    background-color: #ffffff;
    position: relative;
    transition: 0.3s;
    top: 2px;
    float: left;
}

.et-db #et-boc .block-title .et_pb_module_header:after {
    font-family: 'ETmodules';
    content: "\24";
    top: 3px;
    position: relative;
    padding-left: 5px;
}

.et-db #et-boc .block-title .et_pb_module_header a:hover {
    color: #d2d3d4;
}

.et-db #et-boc .block-title .et_pb_blurb_description {
    float: right;
    padding-left: 20px;
    background-color: #ffffff;
    position: relative;
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    color: #777777;
    text-transform: uppercase;
}

.et-db #et-boc .block-title .et_pb_blurb_container::before {
    position: relative;
    top: 20px;
    left: 0;
    height: 4px;
    content: '';
    display: block;
    z-index: 0;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.08);
}

.et-db #et-boc .et_pb_posts .et_pb_post {
    padding: 40px;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 0;
}

.et-db #et-boc #cats,
.et-db #et-boc #subpages {
    padding: 0 !important;
    background-color: #ffffff;
    font-family: 'Montserrat';
    font-weight: 600;
}

.et-db #et-boc #cats .et_pb_module .et_pb_text_inner {
    padding: 40px;
}

.et-db #et-boc #subpages .et_pb_module .et_pb_text_inner {
    padding: 40px 40px 0 40px;
}

.et-db #et-boc #subpages .et_pb_text_inner>ul::after {
    display: block;
    content: '';
    height: 1px;
    border-bottom: 1px solid #eeeeee;
    padding-top: 40px;
    margin-left: -20px;
}

.et-db #et-boc #cats ul,
.et-db #et-boc #subpages ul {
    padding-bottom: 0;
    list-style: inside square;
}

.et-db #et-boc #loop {
    margin-top: 1px;
}

@media (max-width: 980px) {
    .et-db #et-boc .et_pb_posts .et_pb_post {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .et-db #et-boc #titlerow {
        padding: 10px 20px;
    }

    .et-db #et-boc #cats .et_pb_module .et_pb_text_inner {
        padding: 30px;
    }

    .et-db #et-boc .block-title .et_pb_blurb_description,
    .et-db #et-boc .block-title .et_pb_blurb_container::before {
        display: none;
    }
}

@media (max-width: 479px) {
    .et-db #et-boc #titlerow {
        padding: 5px 10px;
    }

    .et-db #et-boc #cats .et_pb_module .et_pb_text_inner {
        padding: 20px;
    }

    .et-db #et-boc .et_pb_posts .et_pb_post {
        padding: 20px;
    }

    .block-title .et_pb_blurb_description {
        display: none;
    }
}

@media (min-width: 767px) {
    .et-db #et-boc .et_pb_posts .et_pb_post {
        background-image: url("/wp-content/themes/tuzla/img/fallback.png");
        background-repeat: no-repeat;
        background-position: 12% center;
        background-size: 20%;
    }

    .et-db #et-boc .entry-featured-image-url {
        padding-top: 33%;
        width: 33%;
        float: left;
        margin-bottom: 0 !important;
    }

    .et-db #et-boc .entry-featured-image-url img {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        object-fit: cover;
    }

    .et-db #et-boc .et_pb_posts .entry-title,
    .et-db #et-boc .et_pb_posts .post-meta,
    .et-db #et-boc .et_pb_posts .post-content {
        float: right;
        width: 67%;
        padding-left: 30px;
    }
}

.et-db #et-boc .et_pb_posts .post-content-inner p {
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 15px !important;
}

.et-db #et-boc .et_pb_posts .post-content .more-link {
    font-family: 'Montserrat';
    line-height: 18px;
    font-weight: 400;
    font-style: normal;
    color: #606060;
    font-size: 10px;
    text-transform: uppercase;
    text-align: right;
    float: right;
    margin-top: 10px;
}

.et-db #et-boc .et_pb_posts .post-content .more-link:after {
    font-family: 'ETmodules';
    content: "\35";
    top: 1px;
    position: relative;
}

/*  wp-pagenavi pagination links */
.wp-pagenavi {
    text-align: right;
    border-top: 1px solid #eeeeee;
    clear: both;
    margin-bottom: 0;
    padding: 10px 20px 12px;
}

.wp-pagenavi a,
.wp-pagenavi span {
    margin: 0 2px !important;
    padding: 0.2em 0.6em !important;
    font-size: 11px !important;
    color: #333333;
    line-height: 2em;
    background: #ffffff;
    transition: all .5s;
    font-weight: bold !important;
}

.wp-pagenavi span.current {
    color: #ffffff !important;
    background: #333333 !important;
}

.wp-pagenavi a:hover {
    color: #ffffff !important;
    background: #333333 !important;
}

.wp-pagenavi .pages {
    background: none;
}

/* Single
   ========================================================================== */

.featured-image .et_pb_column .et_pb_module:last-child {
    position: relative !important;
}

.custom-meta {
    display: inline-block;
}

.custom-meta a {
    line-height: 25px;
    padding: 0 2px;
}

.custom-meta a:first-child {
    padding-left: 6px;
}

.custom-meta a:last-child {
    padding-right: 6px;
}

span.published {
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    text-transform: uppercase;
    font-size: 10px;
    color: #606060 !important;
}

span.published::before {
    font-family: 'ETmodules';
    content: "\7d";
    line-height: 10px;
    margin-right: 5px;
    font-size: 12px;
    top: 1px;
    position: relative;
}

.et_monarch .et_pb_section .et_social_inline_bottom {
    margin-top: 30px;
    margin-bottom: 0;
}

.su-tabs-vertical .su-tabs-panes .su-tabs-pane,
.su-tabs-vertical .su-tabs-panes .su-tabs-pane li {
    line-height: 1.6em;
}

/* ==========================================================================
   Forme
========================================================================== */

.super-form .super-button-name {
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: bold;
    ;
}

/* ==========================================================================
   Tabela vijećnika
========================================================================== */

/* Tabela */
.vijecnicka-tabela {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 0 12px rgba(0,0,0,0.05);
}

.vijecnicka-tabela th {
    background-color: #f4f4f4;
    color: #333;
    padding: 12px 15px;
    text-align: left;
    cursor: pointer;
    border-bottom: 2px solid #ccc;
    font-weight: 600;
    text-transform: uppercase;
}

.vijecnicka-tabela td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.vijecnicka-tabela tr:nth-child(even) {
    background-color: #fafafa;
}

/* Filter forma */
.filter-form {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    font-family: 'Segoe UI', sans-serif;
}

.filter-form select,
.filter-form input[type="submit"] {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter-form input[type="submit"] {
    background-color: #1e88e5;
    color: #fff;
    border: none;
    cursor: pointer;
}

.filter-form input[type="submit"]:hover {
    background-color: #1565c0;
}

/* Dugme "Detalji" */
.prikazi-detalje {
    background-color: #4091f5;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.prikazi-detalje:hover {
    background-color: #4091f5;
}

/* Modal prozor */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 80%;
    max-width: 850px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.4s ease;
}

.modal-content h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.modal-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    color: #999;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}

/* Animacije */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
	
}
sort-arrow.asc {
    border-top: 5px solid #333;
    border-bottom: 0;
}
th.sortable {
    cursor: pointer;
    position: relative;
}
th.sortable::after {
    content: '';
    font-size: 12px;
    padding-left: 5px;
}
/* Modal backdrop */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 10%;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Modal content box */
.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    box-sizing: border-box;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* Close button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #000;
}

/* Responsive tweaks */
@media screen and (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 15px;
        font-size: 14px;
    }

    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 20px;
    }
}

/* Animation (optional) */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a, .pagination span {
    padding: 8px 16px;
    margin: 0 4px;
    text-decoration: none;
    color: #0073aa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination a:hover, .pagination span.current {
    background-color: #0073aa;
    color: #fff;
}
.sort-arrow.asc::after {
  content: '↑';
}

.sort-arrow.desc::after {
  content: '↓';
}


