/*
Theme Name: DAOS Portal Child
Theme URI: https://aktuelnosti.info/
Description: Child theme for DAOS Portal. Add site-specific CSS customizations here so the parent theme can be updated safely.
Author: Daos-IT
Template: daos-portal
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: daos-portal-child
*/

/* ==================================================
   DAOS PORTAL CHILD - CUSTOM CSS
   Add your custom CSS below this line.
================================================== */

h3 {
    font-weight: 600;
}
h3 a:hover{
   color: red;
}

.daos-hero__title {
    font-size: clamp(2rem, 2.2vw, 4rem);
}
.daos-hero__text {
    padding: clamp(10px, 2.2vw, 72px);
}

.daos-breadcrumbs-module {
    font-size: 16px;
    color: #cd1b1b;
    font-weight: 600;
}


/* TABELE */

/* Tabele unutar sadržaja članaka */
.entry-content .wp-block-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
}

/* Sama tabela */
.entry-content .wp-block-table table,
.entry-content .wp-block-table table.has-fixed-layout {
    width: 100%;
    min-width: 780px;
    table-layout: auto;
    border-collapse: collapse;
    margin: 0;
}

/* Ćelije */
.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
    padding: 12px 14px;
    vertical-align: top;
    text-align: left;
    line-height: 1.5;
    word-break: normal;
    overflow-wrap: normal;
}

/* Neparni redovi - 1, 3, 5... */
.entry-content .wp-block-table tbody tr:nth-child(odd) > * {
    background: #f7f7f7;
}

/* Parni redovi - 2, 4, 6... */
.entry-content .wp-block-table tbody tr:nth-child(even) > * {
    background: #fff;
}

/* Mobilni */
@media (max-width: 768px) {
    .entry-content .wp-block-table table,
    .entry-content .wp-block-table table.has-fixed-layout {
        min-width: 780px;
    }

    .entry-content .wp-block-table th,
    .entry-content .wp-block-table td {
        padding: 10px 12px;
        font-size: 15px;
        line-height: 1.45;
    }
}

/* kraj TABELE */

.daos-lb-module.daos-lb-module--html {
    text-align: center;
}
.daos-lb-column img {
    border-radius: 7px;
}
.daos-hero__item {
    gap: 10px;
}

h2.daos-lb-row__title, h2.daos-lb-column__title {
    border-bottom: 3px solid red;
    padding-bottom: 10px;
    max-width: 60%;
}

h2.daos-module-title {
    padding-left: 10px;
    border-left: 4px solid red;
}

.daos-lb-column.plavac {    
    border: 1px solid #d1d9f3;
    border-radius: 5px;
    background-color: #e6ecf2;
    padding: 30px 8px; 
}


@media (min-width: 901px) {
    
    .daos-lb-column.plavac {         
      margin-top: 55px;
   }
}

@media (min-width: 760px) {
    .daos-article-header-module__title {
        padding: 0 1em;
    }
    .daos-hero__item--2 {
        margin-top: -15px;
    }
}

.daos-hero__media {
    min-height: 520px;
}


.plavo-sivi-kontejner {
    width: 300px;
    height: 600px;
    background-color: #e6ecf2; /* Svetlo plavo-siva nijansa */
    border-radius: 8px;        /* Opciono: blago zaobljene ivice za lepši izgled */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Opciono: diskretna senka */
    margin: auto;
}





/*
    faq damir deo
*/
.mp-faq {
    margin: 40px 0;
}

.mp-faq-title {
    margin: 0 0 20px;
    font-size: 28px;
    line-height: 1.25;
}

.mp-faq-list {
    border-top: 1px solid #e2e2e2;
}

.mp-faq-item {
    border-bottom: 1px solid #e2e2e2;
}

.mp-faq-question {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 18px 45px 18px 0;

    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;

    cursor: pointer;
    list-style: none;
}

/* uklanja standardnu strelicu */
.mp-faq-question::-webkit-details-marker {
    display: none;
}

.mp-faq-question::marker {
    display: none;
    content: "";
}


/* PLUS */

.mp-faq-icon {
    position: absolute;
    right: 5px;
    top: 50%;

    width: 18px;
    height: 18px;

    transform: translateY(-50%);
}

.mp-faq-icon::before,
.mp-faq-icon::after {
    content: "";
    position: absolute;

    left: 50%;
    top: 50%;

    background: currentColor;

    transform: translate(-50%, -50%);
}

.mp-faq-icon::before {
    width: 18px;
    height: 2px;
}

.mp-faq-icon::after {
    width: 2px;
    height: 18px;

    transition: transform 0.2s ease,
                opacity 0.2s ease;
}


/* MINUS kada je otvoreno */

.mp-faq-item[open] .mp-faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}


/* ODGOVOR */

.mp-faq-answer {
    padding: 0 45px 20px 0;

    font-size: 16px;
    line-height: 1.7;
}

.mp-faq-answer > div > *:first-child {
    margin-top: 0;
}

.mp-faq-answer > div > *:last-child {
    margin-bottom: 0;
}


/* MOBILE */

@media (max-width: 767px) {

    .mp-faq {
        margin: 30px 0;
    }

    .mp-faq-title {
        font-size: 24px;
    }

    .mp-faq-question {
        padding: 16px 40px 16px 0;
        font-size: 17px;
    }

    .mp-faq-answer {
        padding: 0 40px 18px 0;
        font-size: 16px;
    }

}

.daos-header-search__overlay--viewport .daos-header-search__form
 {
    margin-top: 246px;
}

.daos-header-search__overlay--viewport .daos-header-search__close {
    top: -58px;
}

/* WordPress Code block */
.wp-block-code {
	position: relative;
	margin: 24px 0;
	padding: 18px 20px;
	background: #f7f9fc;
	border: 1px solid #e1e6ee;
	border-left: 4px solid #1e3a8a;
	border-radius: 8px;
	overflow-x: auto;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wp-block-code code {
	display: block;
	padding: 0;
	margin: 0;
	background: transparent;
	color: #1f2937;
	font-family: Consolas, Monaco, "Courier New", monospace;
	font-size: 15px;
	line-height: 1.6;
	white-space: pre;
}

/* lep scrollbar kod dužeg koda */
.wp-block-code::-webkit-scrollbar {
	height: 7px;
}

.wp-block-code::-webkit-scrollbar-track {
	background: transparent;
}

.wp-block-code::-webkit-scrollbar-thumb {
	background: #c7ced9;
	border-radius: 10px;
}

/* mobile */
@media (max-width: 600px) {
	.wp-block-code {
		padding: 15px 16px;
		margin: 20px 0;
	}

	.wp-block-code code {
		font-size: 14px;
	}
}