/* ============================================================
   Design enhancement layer — advokat-golic.com
   Loaded after template + modern.css. Visual polish + mobile
   responsiveness, achieved purely through overrides (no HTML
   structure changes). Brand palette kept: maroon #76171D,
   cream #F1EDE0, tan #D8CBA8, dark #392F23.
   ============================================================ */

/* ---- Outer frame & cream panel depth ---- */
#background{padding:24px 0 34px;}
#main{
  background:#F1EDE0;
  border:none !important;
  border-radius:5px;
  box-shadow:0 14px 44px rgba(0,0,0,.42);
}
#main .inside{padding:24px 34px;}
#header{border-bottom:1px solid #D8CBA8;padding:10px 0 16px;margin-bottom:4px;}

/* ---- Top navigation ---- */
#mainmenu a{
  padding:7px 14px !important;
  margin:0 2px !important;
  border-radius:5px !important;
  color:#4a3b2c !important;
  transition:background-color .2s ease,color .2s ease !important;
}
#mainmenu a:hover{
  background:#e7dcc3 !important;
  box-shadow:none !important;
  color:#76171D !important;
  text-decoration:none;
}
#mainmenu li.active a,#mainmenu li#current a{
  background:#76171D !important;
  color:#fff !important;
  box-shadow:none !important;
  text-shadow:none !important;
}

/* ---- Sidebar: Areas of practice ---- */
.moduletable_menu h3{
  border-bottom:2px solid #76171D;
  padding-bottom:8px;
  margin:0 0 10px;
}
.moduletable_menu .menu{list-style:none;margin:0;padding:0;}
.moduletable_menu .menu li{
  margin:0;
  padding:0;
  border-bottom:1px solid rgba(118,23,29,.09);
}
.moduletable_menu .menu a{
  display:block;
  padding:8px 10px 8px 12px;
  color:#5a4a39 !important;
  border-left:3px solid transparent;
  border-radius:0 4px 4px 0;
  transition:background-color .15s ease,border-color .15s ease,padding .15s ease,color .15s ease;
}
.moduletable_menu .menu a:hover{
  background:#e9dec6 !important;
  border-left-color:#76171D;
  color:#76171D !important;
  padding-left:16px;
  text-decoration:none;
}
.moduletable_menu .menu li.active a,.moduletable_menu .menu li#current a{
  background:#efe6d2 !important;
  border-left-color:#76171D;
  color:#76171D !important;
  font-weight:600;
}

/* ---- Content ---- */
.contentheading{
  border-bottom:2px solid rgba(118,23,29,.28) !important;
  margin-bottom:18px !important;
}
#content-inner img{border-radius:5px;}

/* ---- Footer ---- */
#footer{
  font-style:normal !important;
  color:#cdbfa6;
  font-size:13px;
  line-height:1.65;
  padding:20px 12px 6px;
}
#footer #link{margin:0;}
#footer #link::after{
  content:"\00A9 Advokat Fuad Goli\0107  \00B7  Porodice Ribar 45, 71 000 Sarajevo, Bosna i Hercegovina";
  display:block;
  letter-spacing:.2px;
}

/* ============================================================
   Responsive — the template is a fixed 960px layout; these
   queries let it reflow on tablets and phones.
   ============================================================ */
@media (max-width:860px){
  .width{width:auto !important;min-width:0 !important;}
  #main .inside{padding:18px 18px !important;}
  #header{text-align:center;}
  #logo{
    float:none !important;
    margin:0 auto !important;
    width:100% !important;
    max-width:340px;
    height:80px;
    background-size:contain !important;
    background-position:center !important;
    text-indent:-9999px;
  }
  #toolbar{float:none !important;margin:12px 0 0 !important;}
  #mainmenu{float:none !important;margin:0 !important;text-align:center;}
  #mainmenu a{float:none !important;display:inline-block;margin:3px !important;}
  #mainbody{display:flex;flex-direction:column;}
  #content{order:1;margin:0 !important;}
  #sidebar{
    order:2;
    float:none !important;
    width:auto !important;
    margin-top:22px;
    padding-top:14px;
    border-top:1px solid rgba(118,23,29,.15);
  }
  .contentheading{font-size:25px !important;}
}
@media (max-width:480px){
  #background{padding:12px 0 20px;}
  #main .inside{padding:14px 14px !important;}
  #mainmenu a{display:block;margin:4px auto !important;max-width:260px;}
}
