#main-content {
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  letter-spacing: -0.02em; 
  color: #333333;
  padding-bottom: 60px;
}

#main-content h1 {
  font-weight: 300; 
  font-size: clamp(18px, 4vw, 40px);
  line-height: clamp(32px, 5vw, 52px);
  letter-spacing: 0px;
  color: #7F160E;
  text-transform: uppercase;
}

#main-content > p {
  margin: 0px 32px 16px 64px;
  text-align: left;
}

#main-content > ul,
#main-content > ol {
  margin: 0px 32px 16px 72px;
  text-align: left;
}

#main-content p ul,
#main-content p ol{
  padding: 5px 60px;
}

#main-content p a {
  color: #7F160E;
  text-decoration: none;
}

#main-content td a {
  text-decoration: none;
  color:#7F160E;
}

#main-content td a:hover {
  text-decoration: underline;
}

#main-content p a:hover {
  text-decoration: underline;
}


#main-content .red {
  color:#7F160E;
  display: inline-block;
 /* margin-bottom: 10px;
  padding-top: 20px;*/
}


/* *************** TABELE *************** */

#main-content table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 32px;
    margin-bottom: 32px;
}

#main-content table tr:nth-child(even){
    background-color: #F9F7F5;
    color: #333;

}

#main-content table tr:nth-child(odd){
    background-color: #e2dfdf;
    color: #333;

}

#main-content table td, #main-content table th {
    padding: 18px 25px;
    font-size: 0.9em;
}

.dogadjaji-tabela {
    overflow: visible !important;
}

.dogadjaji-tabela thead th {
    background-color: #4A5766;
    color: #FFFFFF;
    font-weight: 400;
}

.dogadjaji-tabela tr th {
    position: sticky;
    top: 0;
    z-index: 10;
}
/* *************** MEDIA LINKS *************** */
#main-content .media-links a, 
#main-content a.media-link
{
    display: block;
    background: url(../images/icons/external-link1.svg) no-repeat;	
    background-position: 24px center;
    background-size: 24px;
    background-color: #e2dfde;
    width: 100%;
    margin: 16px 0;
    padding: 12px 12px 12px 72px;
    color: #333;
    line-height: inherit;
    text-decoration: none;
}

#main-content .media-links a[href$=".pdf"],
#main-content a[href$=".pdf"].media-link
{
    background: url(../images/icons/pdf-icon.png) no-repeat;
    background-position: 24px center;
    background-size: 24px;
    background-color: #e2dfde;
}

#main-content .media-links a[href$=".doc"], #main-content .media-links a[href$=".docx"], 
#main-content a[href$=".doc"].media-link, #main-content a[href$=".docx"].media-link
{
    background: url(../images/icons/google-docs.png) no-repeat;
    background-position: 24px center;
    background-size: 24px;
    background-color: #e2dfde;
}

#main-content .media-links a[href$=".mp4"],
#main-content a[href$=".mp4"].media-link
{
    background: url(../images/icons/youtube.png) no-repeat;
    background-position: 24px center;
    background-size: 24px;
    background-color: #e2dfde;
}

/* wpautop često dodaje br elemente - ovde ne trebaju */
#main-content .media-links br { display: none; }

#main-content h2 {
    font-size: clamp(20px, 3.5vw, 26px);
    font-weight: 300;
    color: #7F160E;
    margin: 40px 0px 24px 0px;
    line-height: 1.2;
    padding-bottom: 0px;
}

#main-content h3 {
    margin-top: 20px;
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 300;
    color: #7F160E;
}

#main-content h4 {
    font-size: clamp(14px, 2.5vw, 18px);
    color: #7F160E;
    margin: 0 0 4px 12px;
}

#main-content h4 a {
  margin: 0px 32px 16px 32px;
}



/* IZLOZBA SLIKA - slika preko cele sirine sa gornjom/donjom marginom */

.tekuca-izlozba-content > img{
  width: 100%;
  height: auto;
  display: block;
  margin: 40px 0;
}

/*  IMAGE CAPTION - stranice sa [caption] shortcode-om 
	podrazumevano fotografija ide na 100% sirine a opis ispod,
	osim na većim ekranima (MD+) ako je klasa .caption-right 
	Ovo je definisano u RESPONSIVE delu pri dnu
*/


.misanu-image-caption:not(.caption-right){
    width: 100%;
}

.misanu-image-caption img:not(.caption-right){
    width: 100%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    transition: 0.3s ease;
}

.misanu-image-caption figcaption{
  text-align: right;
  width: 100%;
  margin-top: 16px;
  font-size: 0.9em;
}





/******** DODELA GORNJE MARGINE PRVOM ELEMENTU STRANICE TIPA p, hx  **********/ 

#main-content > :is(p, h1, h2, h3, h4) {
  margin-top: clamp(32px, 5vw, 64px)!important;
}
#main-content > :is(p, h1, h2, h3, h4) ~ :is(p, h1, h2, h3, h4) {
  margin-top: inherit!important;
}





.grey-box-links{
    display:flex;
    flex-wrap:wrap;
    gap:40px 10px;
    margin: 40px 0px;
    justify-content:center;
}

.grey-box-links a{
    flex:0 0 calc(25% - 20px);
    background:#DBDDE0;
    color:#333;
    text-decoration:none;

    min-height:130px;
    padding:22px 18px;

    display:flex;
    align-items:center;

    font-weight:400;
    text-transform:uppercase;

    position:relative;

    transition:all .2s ease;

    box-sizing:border-box;
}

/* gornja linija */
.grey-box-links a::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:8px;
    background:#5a6675;
}

.grey-box-links a:hover{
    background:#d0d3d7;
    transform:translateY(-2px);
}


/* *************** ACCORDION WHITE *************** */

.accordion-white {
    margin-bottom: 20px;
}
.accordion-white br {
    display: none;
}
.accordion-white .accordion-item {
    border: 0;
   /* border-bottom: 1px solid #ddd;*/
    border-radius: 0;
}

.accordion-white .accordion-button {
    background: transparent;
    box-shadow: none;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    padding: 18px 0;
    line-height: 1.7;
}

.accordion-white .accordion-button:not(.collapsed) {
    background: transparent;
    color: #333;
    box-shadow: none;
}

.accordion-white .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-white .accordion-body {
    padding: 0 0 28px 0;
    color: #333;
    line-height: 1.9;
}

.accordion-white .accordion-body p {
    margin-bottom: 18px;
}

.accordion-white .accordion-body p:last-child {
    margin-bottom: 0px;
}


.members-filter-list p {
  margin-bottom: 18px;
  line-height: 24px;
}


.dais-button {
    display: block;
    width: 360px;
    margin: 75px auto 0;
    padding: 18px 25px;
    background: #e9eaec;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border-radius: 3px;
    margin-bottom: 30px;
}

.dais-button br {
    display: none;
}

.dais-button:hover {
    background: #dcdde0;
    text-decoration: none;
}

/* tablet */
@media(max-width:992px){
    .grey-box-links a{
        flex:0 0 calc(33% - 15px);
    }
}

/* mobile */
@media(max-width:576px){
    .grey-box-links a{
        flex:0 0 calc(50% - 15px);
        min-height:100px;
    }
}


/* R E S P O N S I V E */

/* XL */
@media screen and (min-width: 1200px) {
    
  #main-content {
    padding-left: 32px;
  }
 

}

/* MD + */

@media screen and (min-width: 768px) {

   .misanu-image-caption.caption-right {
    display: flex;
  }
    
  .misanu-image-caption.caption-right figcaption{
    text-align: left;
    padding-left: 16px;
    align-self: flex-end;
    width: 50%;
  }
  
  .misanu-image-caption.caption-right img {
    width: 50%;
    max-width: 400px;
    align-self: flex-end;
    object-fit: contain;
  } 

}
@media (max-width: 767px) {
   .dogadjaji-tabela thead {
        display: none;
    }
    #main-content > p {
      margin: 0 12px 16px 12px;
    }
    
    #main-content, 
    .accordion-white .accordion-button {
      font-size: 16px;
    }
    
    #main-content > ol, 
    #main-content > ul {
      margin: 0 16px 16px 32px;
    }
    
  
    #main-content table {
        width: 100%;
    }
    
    #main-content table td, #main-content table th{
        padding: 12px;
    }
    
    .accordion-white {
      margin-left: 12px;
      margin-right: 12px;
    }
    

    #main-content .table-sm-merge table td {
        display: block;
        width: 100% !important;
        padding: 6px 16px;
      }

    #main-content .table-sm-merge table tr {
        display: block;
        margin-bottom: 12px;
    }
    #main-content .table-sm-merge table td:first-child {
        font-weight: 600;
    }
    
    
}

