/* 
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
*/

:root {
--vamtam-headings-max-width: 1280px;
--vamtam-headings-horizontal-spacing: 30px;
--vamtam-headings-vertical-spacing: 40px;
}

.blur-background,
.blur-background-masked:not(:has(.elementor-widget-container)),
.blur-background-masked .elementor-widget-container {
	backdrop-filter: saturate(180%) blur(40px);
}

.regulative {
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 18px;
    color: #000;
    letter-spacing: 0.025em;
    padding-top: 20px;
    padding-bottom: 20px;
    background: #f0f0f3;
    padding-left: 20px;
    margin-top: 30px;
    font-weight: bold;
}

U redu, moja greška – skroz sam previdio da ti je HTML fiksiran i da radiš samo u CSS-u (vjerovatno kroz WordPress Customizer ili gotov plugin).

Ako ne smiješ dirati HTML, možemo sve srediti isključivo preko CSS-a tako što ćemo pregaziti tvoja trenutna pravila.

Evo koda koji će tvoj postojeći HTML (gdje je tekst unutar <h4> i slika unutar <a>) presložiti u red, poravnati elemente i promijeniti boje da liče na sliku sa sajta DRI:

CSS
/* Glavni naslov sekcije */
.regulative {
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #b1271e; /* Crvena boja sa slike */
    background: none; /* Uklanjamo sivu pozadinu ako ti ne treba */
    padding: 0;
    margin-top: 20px;
    margin-bottom: 25px;
}

/* Podešavanje liste da ide stavka ispod stavke */
.document-wrapper ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Razmak između redova */
}

/* Resetovanje margina za li stavke */
.document-wrapper ul li {
    margin: 0;
    padding: 0;
}

/* Smanjujemo padding oko dokumenta */
.document {
    padding: 5px 0;
}

/* KLJUČNO: Okrećemo link iz kolone u red (inline-flex) */
.document a {
    display: inline-flex !important; /* !important za svaki slučaj ako tema forsira staro */
    flex-direction: row !important;  /* Ikona i tekst idu jedno pored drugog */
    align-items: center !important;  /* Vertikalno centriranje ikone i teksta */
    justify-content: flex-start !important; /* Poravnanje ulijevo */
    text-decoration: none;
}

/* Podešavanje h4 oznake koja je već u tvom HTML-u */
.document a h4 {
    font-size: 15px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    margin: 0 0 0 12px !important; /* Pomijera tekst 12px desno od ikone i resetuje gornju marginu */
    font-weight: normal !important;
}

/* Smanjujemo ikonu ako je prevelika */
.document a img {
    width: 24px !important;
    height: auto !important;
    display: block !important;
}

/* Hover efekat na tekst (h4) kada se pređe mišem preko linka */
.document a:hover h4 {
    color: #b1271e !important; /* Tekst prelazi u crvenu */
    text-decoration: underline !important; /* Podvlačenje teksta */
}


.contact-item p:nth-child(even) {
    background: #f2f4f7;
}


.contact-item p {
    font-family: OSReg;
    font-size: 15px;
    color: #3d464b;
    padding-top: 15px;
    padding-bottom: 15px;
    background: #e2e8ef;
    padding-left: 15px;
    margin: 0;
}

/* Nested Tabs */
.e-n-tabs-heading {
    position: absolute;
    bottom: 0;
    display: flex;

    /* SCSS variable @hr_spacing -> use CSS var directly */
    /* hr_spacing = var(--vamtam-headings-horizontal-spacing, 30px) */

    max-width: calc(
        var(--vamtam-headings-max-width, 100%) +
        calc(var(--vamtam-headings-horizontal-spacing, 30px) * 2)
    );

    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding-left: var(--vamtam-headings-horizontal-spacing, 30px);
    padding-right: var(--vamtam-headings-horizontal-spacing, 30px);
    margin-bottom: var(--vamtam-headings-vertical-spacing, 40px);
    z-index: 2;
}

.elementor-widget-n-tabs.vamtam-has-theme-widget-styles.vamtam-has-theme-style .e-n-tab-title {
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    backdrop-filter: saturate(180%) blur(40px);
}

.vamtam-icon-hover-parent:hover .elementor-heading-title, .vamtam-icon-hover-parent:hover .elementor-post-info__terms-list-item {
    color: #FFF!important;
}

/* Tablet (≥ 768px) */
@media (min-width: 768px) {
    .document-wrapper ul {
        grid-template-columns: repeat(2, 1fr);
    }

    
}

@media (max-width: 768px) {

    .e-n-tabs-heading {
        position: relative !important;
        display: flex;
        flex-direction: column !important;
        align-items: stretch;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        transform: none !important;
        left: unset !important;
        margin-bottom: 20px !important;
        gap:0px!important;
    }

    .e-n-tabs-heading .e-n-tab-title {
        width: 100%;
        margin-bottom: 10px;
        font-size: 14px; /* smaller font */
        padding: 10px 12px; /* smaller padding */
        text-align: left;
    }

    .e-n-tabs-heading .e-n-tab-title:last-child {
        margin-bottom: 0;
    }
}


.contact-cards .institution {
    text-align: center;
    margin-bottom: 40px;
    font-size: 14px;
}

.contact-cards .institution a {
    text-decoration: none;
}

.contact-cards .section {
    margin-bottom: 45px;
}

.contact-cards .section h2 {
    background: #C40C21;
    color: #fff;
    padding: 14px 18px;
    font-size: 18px;
    border-radius: 0;
}

.contact-cards .cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.contact-cards .card {
    background: #fff;
    padding: 16px;
    border-radius: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.contact-cards .card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #C40C21;
}

.contact-cards .role {
    font-style: italic;
    font-size: 14px;
    color: #555;
}

.contact-cards .card a {
    color: #C40C21;
    text-decoration: none;
    word-break: break-word;
    font-size: 14px;
}

.contact-cards .card img {
    max-height: 150px;
    width: auto;
    display: block;
    margin: 10px auto;
}

/* Laptop/Desktop (≥ 1024px) */
@media (min-width: 1024px) {
    .document-wrapper ul {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Widget Spacing & Layout --- */
.elementor-widget-sidebar .widget {
    margin-bottom: 30px;
}

/* --- Elegant Title with Accent Line --- */
.elementor-widget-sidebar .widget-title {
    font-size: 20px;
    color: #2c3e50;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eaeaea;
    position: relative;
}

/* Small red accent line under the title */
.elementor-widget-sidebar .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background-color: #b32a3d; /* Matches your brand red */
}

/* --- Animated Link List --- */
.elementor-widget-sidebar .menu {
    list-style: none !important; /* Removes default bullets */
    padding: 0 !important;
    margin: 0 !important;
}

/* Add subtle dividers between links */
.elementor-widget-sidebar .menu li {
    margin-bottom: 0;
    border-bottom: 1px solid #f5f5f5;
}

.elementor-widget-sidebar .menu li:last-child {
    border-bottom: none;
}

/* Base link styling */
.elementor-widget-sidebar .menu li a {
    display: flex;
    align-items: center;
    padding: 14px 0;
    color: #4a4a4a; /* Sleek dark grey default */
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hidden custom arrow icon */
.elementor-widget-sidebar .menu li a::before {
    content: '\276F'; /* Modern angle arrow */
    font-size: 12px;
    color: #b32a3d;
    margin-right: 0;
    opacity: 0;
    width: 0;
    transform: translateX(-15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Link Hover Animation: Slide right, show arrow, turn red */
.elementor-widget-sidebar .menu li a:hover {
    color: #b32a3d;
    transform: translateX(5px); /* Slides the whole text right */
}

.elementor-widget-sidebar .menu li a:hover::before {
    opacity: 1;
    width: 15px; /* Opens up space for the arrow */
    transform: translateX(0);
}

/* --- Banner Image Premium Hover Effects --- */
/* Wrapper styling for the shadow */
.elementor-widget-sidebar .widget a:has(img) {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04); /* Subtle shadow at rest */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.elementor-widget-sidebar .widget img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.5s ease;
}

/* Image Hover Animation: Lift up, deepen shadow, slight zoom */
.elementor-widget-sidebar .widget a:has(img):hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12); /* Shadow expands */
    transform: translateY(-4px); /* Floats upward */
}

.elementor-widget-sidebar .widget a:has(img):hover img {
    transform: scale(1.04); /* Very subtle internal zoom */
}

/* Tamni sloj (overlay) za glavni slajder */
.elementor-widget-slides .swiper-slide-bg::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.45) !important; /* Zatamnjenje od 65% */
    z-index: 1 !important;
}

/* Osiguravanje da tekst u slajderu bude bijel sa jakom crnom sjenkom */
.elementor-widget-slides .elementor-slide-heading {
    color: #ffffff !important;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.9) !important;
}


body:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 22%;
    height: 100%;
    pointer-events: none;
    background-image: url(https://cedis.me/wp-content/themes/cedis/assets/images/left-diagonal-min-1.png);
    background-repeat: no-repeat;
    background-position: top left;
    background-size: 100% auto
}

@media (max-width: 767px) {
    body:before {
        max-width:215px;
        width: 50%
    }
}

body:after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 26.875%;
    height: 100%;
    pointer-events: none;
    background-image: url(https://cedis.me/wp-content/themes/cedis/assets/images/right-diagonal-top-min.png);
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 100% auto
}